Provided your input-file is small enough to be read into memory
Here's one without that constraint:
perl -i.old -ne 'print if /./;' input.txtIn reply to Re^2: replace multiple newline characters
by hippo
in thread replace multiple newline characters
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |