---

How to Delete Empty Lines in Files Using grep, sed, and awk

An experienced Linux user knows exactly what kind of a nuisance blank lines can be in a processable file. These empty/blank lines not only get in the way of correctly processing such files but also make it difficult for a running program to read and write the file.

Get the Free Newsletter!

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