title: Hidden line in file?
body: <p>I have a UTF-8/no BOM file (converted from ISO-8859-1) that has 31214 lines. I have already run dos2unix on the file. When I open it in notepad++, I see a blank line underneath. When I remove this blank line, the line count reduces by one. I save it under a different name and when I tail the file, the prompt displays on the same line. From bash, how do I delete the blank line in the 1st file to produce the result displayed below in the 2nd file? </p>
  
  <p>The goal is to do this from bash w/o manually deleting the line in notepad++</p>
  
  <p>1st file:</p>
  
  <pre><code>[user@server]$ cat file1.txt | wc -l
  31214
  [user@server]$ tail file1.txt
  T       31212           Data     20170517
  [user@server]$
  </code></pre>
  
  <p>2nd file (edited with notepad++)</p>
  
  <pre><code>[user@server]$ cat file2.txt | wc -l
  31213
  [user@server]$ tail file2.txt
  T       31212           Data     20170517[user@server]$ 
  </code></pre>