in reply to Re: Re: replacing blank linesin thread replacing blank lines
perl -ni -e 'print if /\S/' file.txt [download]
-- Randal L. Schwartz, Perl hacker