perl -ne 's/\r$// or last; $t.=$_; if (eof) {close ARGV; open $fh, ">" +, $ARGV or die; print $fh $t}' files
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: One Liner to strip crlf
by kennethk
in thread One Liner to strip crlf
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |