Remove ^M characters from xhtml file
Jerry McAllister
jerrymc at clunix.cl.msu.edu
Mon Dec 1 07:29:42 PST 2003
>
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?
This is because the file was created in MS-land.
On your FreeBSd system do:
tr -d "\r" < oldfile > newfile
and it will clear them up nicely.
Note, only do this to text files.
////jerry
More information about the freebsd-questions
mailing list