in reply to replace multiple newline characters
the original version of the file is kept as input.txt.old.perl -i.old -0777 -pe 's/\n+/\n/sg' input.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replace multiple newline characters
by hippo (Archbishop) on May 15, 2018 at 08:15 UTC | |
by haukex (Archbishop) on May 15, 2018 at 09:48 UTC | |
by hippo (Archbishop) on May 15, 2018 at 09:59 UTC | |
by haukex (Archbishop) on May 15, 2018 at 10:07 UTC |