Remove ^M characters from xhtml file

Bryan Cassidy b_cassidy at bellsouth.net
Sun Nov 30 18:24:14 PST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry about sending you a e-mail directly. The tr -d '/r' < name >
newname worked perfect. Thanks.

On Sun, 30 Nov 2003 19:17:46 -0700
Robin Schoonover <end at endif.cjb.net> wrote:

> 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/yrWJm8uTTHnDH3ERAoMmAJ4wNxUHEGTzOImkD9rxR+rAsb3c9gCghBha
OstE8EoA4n4FaKIa+lTp2mw=
=83Sy
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list