Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 23:10:33 +0530
From:      Shantanoo Mahajan <freebsd@dhumketu.cjb.net>
To:        Robin Schoonover <end@endif.cjb.net>
Cc:        Bryan Cassidy <b_cassidy@bellsouth.net>
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <20031201174033.GA874@dhumketu.homeunix.net>
In-Reply-To: <20031130191746.09011caf.end@endif.cjb.net>
References:  <20031130191746.09011caf.end@endif.cjb.net>

next in thread | previous in thread | raw e-mail | index | archive | help
+++ Robin Schoonover [freebsd] [30-11-03 19:17 -0700]:
| On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy <b_cassidy@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)

col -bx < old.xhtml > new.xhtml

Shantanoo



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