I have this line inside a file:
ULNET-PA,client_sgcib,broker_keplersecurities ,KEPLER
I try to get rid of that ^M (carriage return) charact
Use tr:
tr
tr -d '^M' < inputfile
(Note that the ^M character can be input using Ctrl+VCtrl+M)
^M
EDIT: As suggested by Glenn Jackman, if you're using bash, you could also say:
bash
tr -d $'\r' < inputfile