In vi, you have to type ctrl-v ctrl-m. This will tell vi you mean control-m and not
carrot-m.
:%s///g
=-= Robert Thompson
> > Even in vi when i do a search for ^M by doing '/^M' it says that no matches were
>found. The ^M is not two characters but one. Can anyone out there please help me?
--
On Mon, 2002-07-22 at 14:41, Desmond Lee wrote:
> Hi guys
>
> I'm trying to read a file, but it's just one massive line. I think that the
> ^M is suppose to be an indication that that's wehre teh newline is suppose
> to be. I've tried to replace ^M with a newline by executing something that i
Hello,
I don't think that the file matters. You say it's a massive line. To read a
file you should first open it. Look at PerlDoc.
"Desmond Lee" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi guys
>
> I'm trying to read a file, but it's just one massive l
Hi guys
I'm trying to read a file, but it's just one massive line. I think that the
^M is suppose to be an indication that that's wehre teh newline is suppose
to be. I've tried to replace ^M with a newline by executing something that i
found on the web:
perl -pi.bak -e 's/\^M/\n/g' moby_thre