in reply to Remove the ^M Character from a Document
perl -pi.bak -e 's!something!something else!' file [download]
Cheers, KM