Remove blank lines from a text file with a single line of perl:
1 |
perl -ni.bak -e ’s/^\s*$//’ filename |
Remove blank lines from a text file with a single line of perl:
1 |
perl -ni.bak -e ’s/^\s*$//’ filename |