![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
(code) One-liner removes whitespace-only lines from text fileby ybiC (Prior) |
on Dec 19, 2001 at 02:15 UTC ( #132953=snippet: print w/replies, xml ) | Need Help?? |
perl -i.bak -ne 'print unless /^\s+$/' file.txt
|
|