nanouk has asked for the wisdom of the Perl Monks concerning the following question:
sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' /tmp/file.txt -i
Thanks in advance. Pascal
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: delete empty lines from text file
by ikegami (Patriarch) on Nov 10, 2009 at 18:34 UTC | |
by nanouk (Novice) on Nov 10, 2009 at 22:01 UTC | |
|
Re: delete empty lines from text file
by BioLion (Curate) on Nov 10, 2009 at 18:26 UTC | |
|
Re: delete empty lines from text file
by Anonymous Monk on Nov 10, 2009 at 19:10 UTC |