In the spirit of TIMTOWTDI ...
$ perl -pe'eof&&chomp' file | nextprocess $ perl -0pe's/\n\Z//' file | nextprocess
In reply to Re: How to chomp the last new line character from the file
by Tux
in thread How to chomp the last new line character from the file
by jojojo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |