in reply to Cannot seem to remove empty/blank lines

It is as easy (and short) as this:
perl -n -e "next unless /[^\s]/; print" /etc/spamdomains.txt

Replies are listed 'Best First'.
RE: Re: Cannot seem to remove empty/blank lines
by takshaka (Friar) on Jun 02, 2000 at 22:06 UTC
    Short you say? perl -pe 's/^\s*$//' /etc/spamdomains.txt