Remove ^M characters from xhtml file

Tijl Coosemans tijl at ulyssis.org
Mon Dec 1 03:16:56 PST 2003


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


More information about the freebsd-questions mailing list