Here is one way:
perl -i -pe 'chomp if eof' file1 file2 ...
--
John.
In reply to Re: How to chomp the last new line character from the file
by jmcnamara
in thread How to chomp the last new line character from the file
by jojojo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |