====== SED - File Spacing - Double space a file which already has blank lines in it ====== Output file should contain no more than one blank line between lines of text. sed '/^$/d;G' filename ---- ===== Example ===== Running that command again this file: aaa bbb ccc returns: aaa bbb ccc