![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
(jeffa) Re: How do I remove blank lines from text files?by jeffa (Bishop) |
on Jul 11, 2000 at 01:42 UTC ( [id://21877]=note: print w/replies, xml ) | Need Help?? |
I realize that I might be chastised for this, but I feel the need to mention that this is a trivial task for vi. Type : and then issue this command The percent sign tells vi 'do this for all lines in the file.' The g operator means 'globally', and the d operator means 'perform deletion on the lines that match'.
In Section
Seekers of Perl Wisdom
|
|