Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 10:29:16 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        b_cassidy@bellsouth.net (Bryan Cassidy)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <200312011529.hB1FTHF01635@clunix.cl.msu.edu>
In-Reply-To: <20031201031602.GA80581@bsdjunky.homeunix.org> from "Bryan Cassidy" at Nov 30, 2003 09:16:02 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312011529.hB1FTHF01635>