Re: [aclug-L] vi question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 31 Mar 1999, Sanjay Dhar wrote:
[ vi showing ^M, pico not ]
I just ran a little test.
You can have ^M chars show up in vi if you (or someone) types
^v^m
to insert it.
If you then load the file up in pico, the ^m disappears. If you save the
file out, though, it _really_ disappears. If you open the file in pico and
exit without saving, the ^m stays.
So, I'm guessing that you have actual ^m characters in the file.
You can get rid of them with:
:1,$s/^v^m$//
(where ^v^m is you hitting control-v control-m)
There's also the dos2unix command.
-jeff
-----
"Nice boy, but about as sharp as a sack of wet mice."
-- Foghorn Leghorn
|
|