Remove ^M characters from xhtml file
Robin Schoonover
end at endif.cjb.net
Sun Nov 30 18:17:59 PST 2003
On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy <b_cassidy at bellsouth.net>
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?
dos2unix (converters/unix2dos in ports) is an easy route (dos2unix name).
Also you can use the tr command (tr -d '\r' < name > newname).
--
Robin Schoonover (aka End)
#
# You hear the moon howling at you.
# -- NetHack
More information about the freebsd-questions
mailing list