in reply to How to remove newline characters at the end of file
perl -ne'$b.=$_;/./||next;print$b;$b=""' your-file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to remove newline characters at the end of file
by Mandrake (Chaplain) on Feb 21, 2012 at 23:00 UTC |