Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2003 23:30:30 -0600 (CST)
From:      Lars Eighner <eighner@io.com>
To:        Bryan Cassidy <b_cassidy@bellsouth.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <20031130232746.H1230@pearl.io.com>
In-Reply-To: <20031201031602.GA80581@bsdjunky.homeunix.org>
References:  <20031201031602.GA80581@bsdjunky.homeunix.org>

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

-- 
Lars Eighner
eighner@io.com -finger for geek code-
http://www.io.com/~eighner/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266



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