Remove ^M’s from a file or more January 26, 2009 johni How to remove ^M from within a file: perl -pi -e 'y/\015//d'filename