Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 12:16:50 +0100
From:      Tijl Coosemans <tijl@ulyssis.org>
To:        Bryan Cassidy <b_cassidy@bellsouth.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <20031201121650.4693112b.tijl@ulyssis.org>
In-Reply-To: <20031130213933.72712e71.b_cassidy@bellsouth.net>
References:  <20031201031602.GA80581@bsdjunky.homeunix.org> <20031130191746.09011caf.end@endif.cjb.net> <20031130212913.1d7c0126.b_cassidy@bellsouth.net> <20031130213933.72712e71.b_cassidy@bellsouth.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 30 Nov 2003 21:39:33 -0600, Bryan Cassidy wrote:

> Well, I take that back. It worked on 1 file and then ir started
> erasing the contents of the file.

tr -d \\r < file > tmp && mv tmp file

or

col -b < file > tmp && mv tmp file



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