6
Oct/09
0

Strip empty (null) lines from a file

sed meets the need; the recipe follows:

sed '/^$/d' filename