If you know the crlf will always be there:
perl -E"$s=-s $ARGV[ 0 ]; truncate( $ARGV[0], $s-2 ) or die $!" junk.d +at
In reply to Re: delete last CR and LF from txt
by BrowserUk
in thread delete last CR and LF from txt
by mph151
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |