In vi editor, do the following:

:g/^M/s///



^M has to be entered with the key strokes "ctrl-v followed by ctrl-m".