[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: stripping the ^M
- From: "Anthony E. Greene" <agreene pobox com>
- To: redhat-list redhat com
- Subject: Re: stripping the ^M
- Date: Fri, 09 Apr 1999 09:16:54 +0200
At 00:46 1999-04-09 -0400, Cimarron Ryan wrote:
>Just for kicks, I decided to try and strip the nasty ^M from windows/dos
>text files using sed.
>
>$ sed -e s/^M//g filename
I don't use sed, but carriage returns are generally represented by \r. So
try this:
$ sed -e s/\r//g filename
Tony
--
Anthony E. Greene <agreene pobox com>
Homepage and PGP Key: <http://www.pobox.com/~agreene/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]