Strip empty (null) lines from a file #text processing #sed sed meets the need; the recipe follows: sed '/^$/d' filename