sed -e "/^$/d" FILENAME > newfilename
will do the job if they are empty lines.
Jack Stone wrote:
> Here I come with another easy one for most on the list -- except for me.
> I have 12,000 plus lines that have an empty line in between each real
> line, like so:
> this is a line of info 1
> this is a line of info 2
> this is a line of info 3
> etc, etc
> To eliminate each "empty" line in between the "info" lines would take a
> long, long time.
> Thus my question: what tool is available or syntax to remove the 6000
> empty lines so there's no space in between?
> This has got to be an easy one, except when one doesn't know the answer.
> Jack of all trades, master of only some!
> Stay in touch with old friends and meet new ones with Windows Live
> email@example.com mailing list
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"