I have a problem when I try to remove ^M from a csv
When I type vim or vi file.csv, I get
A, TK,2015-04-06,14.4^M,14.7,10.0,0.0,54.0^M,13.3^M,135.0^M
You can try:
perl -pE 's/(\^M|\r)//g' < file >file2
should remove
^M
^
M
\r