in reply to One Liner to strip crlf
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.
|
|---|