Re: Getting a text file rid of all superfluous blank lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-30-11 at 23:44 +0800, John Summerfied wrote:
> Paul Smith wrote:
> > Dear All
> > 
> > Taking a text file, how can one eliminate at once all superfluous blank lines?
> > 
> > Thanks in advance,
> > 
> > Paul
> > 
> man cat
> man grep
> 
> 
> -- 
> 
> Cheers
> John
> 
> -- spambait
> 1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
> Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
> 
> do not reply off-list


sed -e 's;^\w*$;;' file-to-clean | grep -v '^$'




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux