Remove ^M characters from xhtml file

Gerard Samuel fbsd-questions at
Sun Nov 30 18:49:49 PST 2003

On Sunday 30 November 2003 10:39 pm, Bryan Cassidy wrote:
> Hash: SHA1
> Well, I take that back. It worked on 1 file and then ir started erasing
> the contents of the file.

perl -pi -e "s:^M::g" <filenames>

Usually works for me.
Picked it up from

More information about the freebsd-questions mailing list