====== SED - Delete - Delete blank lines ====== Same as "grep '.' " sed '/^$/d' # method 1 sed '/./!d' # method 2 ---- ===== Example ===== Running that command again this file: aaa bbb ccc returns: aaa bbb ccc ---- ===== Example ===== cat input.txt | sed '/^$/d' > output.txt