in reply to (jeffa) Re: How do I remove blank lines from text files?
in thread How do I remove blank lines from text files?
Of course, if you're going to bother to start up vi, you
might as well just do
perl -pi -e 's/^\n$//' file.txt
But I think this exceeds the scope of the original poster's
question, since his program is already parsing the file.
|
---|
In Section
Seekers of Perl Wisdom