in reply to Re: remove blank lines with regex
in thread remove blank lines with regex
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.
|
---|