in reply to Re: can't see ^M to process.
in thread can't see ^M to process.

Even shorter
perl -e 's/\r//g' Filename

Replies are listed 'Best First'.
Re^3: can't see ^M to process.
by rev_1318 (Chaplain) on Jul 19, 2005 at 18:14 UTC
    that won't work. I guess you mean:
    perl -pi -e 's/\r//g' Filename
    but, most of the time, only the cr on the end is to be removed:
    perl -pi -e 's/\r$//' Filename

    Paul