[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: stripping the ^M
- From: Statux <statux bigfoot com>
- To: redhat-list redhat com
- Subject: Re: stripping the ^M
- Date: Fri, 09 Apr 1999 11:17:17 -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
>
> doesn't work. And neither does
>
> $ sed -e s/\^M//g filename
>
> How can you match control characters in the regexp?
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request redhat com with
> "unsubscribe" as the Subject.
Well my head is telling me that ^M and the endline characters, though
basically the same, are sorta different.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]