in reply to Removing Carriage returns from text files
UPDATEperl -pi.bak -e "BEGIN{binmode(STDOUT)}" file1 file2
or probably like this:perl -pe "BEGIN {binmode(STDOUT)}" < in_file > out_file
The idea being that you are reading in with the usual \r\n to \n conversion, and then you print out without that conversion. (Thereby dropping the "\r".)perl -pi.bak -e "binmode ARGVOUT" file1 file2
|
|---|