How to kill blank lines elegantly

If you do a Web search for ‘linux delete blank lines’ you’ll find lots of command-line advice. Some of the advice, though, only applies to special cases. Here I explain two elegant and general methods for finding and deleting any blank lines in a text file.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis