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 '^$'