in reply to delete last CR and LF from txt
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: delete last CR and LF from txt
by bot403 (Beadle) on Feb 22, 2010 at 23:00 UTC |