May 2017
Beginner
552 pages
28h 47m
English
Regular expression support makes it easy to remove blank lines. The ^$ regular expression defines a line with nothing between the beginning and end == a blank line. The final /d tells sed to delete the lines, rather than performing a substitution.
$ sed '/^$/d' file