[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: stripping the ^M



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]