the original version of the file is kept as input.txt.old.perl -i.old -0777 -pe 's/\n+/\n/sg' input.txt
In reply to Re: replace multiple newline characters
by morgon
in thread replace multiple newline characters
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |