perl -ni.bak -e 'print if /\S/' file1 file2 ...In other words, "print if there is non-whitespace" versus "print unless composed of only whitespace".
In reply to Re^2: Removing Blank Lines From a File
by tadman
in thread removing blank lines from files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |