Removing empty lines from text/csv file with awk in linux

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn


You have a text file that has empty lines, and you would like to remove them.


You can use awk in linux like the following to create a new file with the empty lines removed: