[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: stripping the ^M
- From: Michael George <george mintcity com>
- To: redhat-list redhat com
- Subject: Re: stripping the ^M
- Date: Fri, 9 Apr 1999 08:13:53 -0400
On Apr 09, 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?
You are probaly using the shift-6 for the caret character? Instead, type
ctrl-v and then ctrl-m. That will probably make the difference.
-Michael
--
No, my friend, the way to have good and safe government, is not to trust it
all to one, but to divide it among the many, distributing to every one exactly
the functions he is competent to. It is by dividing and subdividing these
republics from the national one down through all its subordinations, until it
ends in the administration of every man's farm by himself; by placing under
every one what his own eye may superintend, that all will be done for the
best.
-- Thomas Jefferson, to Joseph Cabell, 1816
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]