I second that, and here is my 2-cent solution:
perl -wnl -e 'print $_ unless /^$/' infile >outfile
see also:
perldoc perlrun perldoc perlre
-- Joost downtime n. The period during which a system is error-free and immune from user input.
In reply to Re: Re: remove blank lines with regex
by Joost
in thread remove blank lines with regex
by amarceluk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |