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?
The goal is to do this from bash w/o manually deleting the line in notepad++
1st file:
[user@server]$ cat file1.txt | wc -l
31214
[user@server]$ tail file1.txt
T 31212 Data 20170517
[user@server]$
2nd file (edited with notepad++)
[user@server]$ cat file2.txt | wc -l
31213
[user@server]$ tail file2.txt
T 31212 Data 20170517[user@server]$