in reply to Re: removing blank lines from files
in thread removing blank lines from files
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".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Removing Blank Lines From a File
by marvell (Pilgrim) on Jun 20, 2002 at 15:03 UTC | |
by tadman (Prior) on Jun 20, 2002 at 15:48 UTC |