Remove ^M characters from xhtml file
eighner at io.com
Sun Nov 30 21:32:02 PST 2003
On Sun, 30 Nov 2003, Bryan Cassidy wrote:
> 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?
perl -pi -e "s#\r##g" <filespecs>
If it is just one or two files it might be just as
easy to search and replace \r with nothing in your
text editor (depending on your text editor).
eighner at io.com -finger for geek code-
8800 N IH35 APT 1191 AUSTIN TX 78753-5266
More information about the freebsd-questions