perl -e 's/\r//g' Filename [download]
In reply to Re^2: can't see ^M to process. by xorl in thread can't see ^M to process. by DougC