Re:Useful Perl one-liners (2013)
by ldoroud on Tuesday November 29, 2016 @07:32PM
(#13067462)
My favorite command when dealing with csv/txt files generated by Microsoft products:
[ Parent
| on HN ]
Don't you end up duplicating every line break that way? I think it should be
perl -p -e 's/\r//g' Bad_Microsoft.csv Good_unix.csv
After all, Microsoft files usually end in a carriage return followed by a line break and not a bare carriage return, don't they?