Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 17:04:24 -0500
From:      "M.D. DeWar" <mark@s-wit.net>
To:        "Big Daddy EBK" <bigdaddyebk@cox.net>, <freebsd-questions@freebsd.org>
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <001b01c3b857$168de790$fa65a8c0@ocfl061>
References:  <000001c3b855$58e06de0$1401a8c0@lilshilznit>

next in thread | previous in thread | raw e-mail | index | archive | help
I found this one that works
cat [filename] | tr -d '/r' > out; mv out [new filename]

Mark
----- Original Message ----- 
From: "Big Daddy EBK" <bigdaddyebk@cox.net>
To: <freebsd-questions@freebsd.org>
Sent: Monday, December 01, 2003 4:51 PM
Subject: Re: Remove ^M characters from xhtml file


> Hello everyone, I'm very new to BSD & this mailing list so please
> forgive me should I post incorrectly.
>
> Here are some links that may help you with removing the ^M character
> from any file!!
>
> http://www.unixblog.com/quick_unix_tips/remove_m_with_vi.php - I like
> this one personally, because I've used it before & it worked!!
>
> http://www.introcomp.co.uk/general/remove_dos.html
>
> BigDaddyEBK
>
> "Unix" for Longevity
> "AS/400" for Nostalgia
> "Linux" for Productivity
> "MAC" for Multimedia
> "Windows" for Solitaire
>
> Hello tech support? I broke the cup-holder on my computer!!
>
>
> Date: Mon, 1 Dec 2003 23:10:33 +0530
> From: Shantanoo Mahajan <freebsd@dhumketu.cjb.net>
> Subject: Re: Remove ^M characters from xhtml file
> To: Robin Schoonover <end@endif.cjb.net>
> Cc: freebsd-questions@freebsd.org
> Message-ID: <20031201174033.GA874@dhumketu.homeunix.net>
> Content-Type: text/plain; charset=us-ascii
>
> +++ 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
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001b01c3b857$168de790$fa65a8c0>