[UCLA-LUG] Getting rid of "^M"s in vi

David Fallon davef@getacard.com
Fri, 7 Jul 2000 16:38:03 -0700


(if you're using vim, which you probably are if it's linux...) - ^M is a
unix -> dos file format problem (unix and dos/windows treat carridge returns
differently.)

VIM rules, btw.
----- Original Message -----
From: "David Fallon" <davef@getacard.com>
To: <linux@linux.ucla.edu>
Sent: Friday, July 07, 2000 4:00 PM
Subject: Re: [UCLA-LUG] Getting rid of "^M"s in vi


> or you can change your file format - :help ff
>
> ----- Original Message -----
> From: "James Lee" <jwlee@ucla.edu>
> To: <linux@linux.ucla.edu>
> Sent: Friday, July 07, 2000 3:38 PM
> Subject: Re: [UCLA-LUG] Getting rid of "^M"s in vi
>
>
> > "CHEN,THOMAS" wrote:
> >
> > > I'm editing a text file that displays a lot of "^M" instead of
carriage
> > > returns.  How do I get vi to interpret and display them as such?
> >
> > try :%s/\r//g or you can write a shell script to do it...
> >
> > >
> > >
> > > -thomas
> > >
> > > _______________________________________________
> > > UCLALUG Linux mailing list - Linux@linux.ucla.edu
> > > http://linux.ucla.edu/mailman/listinfo/linux
> >
> >
> > _______________________________________________
> > UCLALUG Linux mailing list - Linux@linux.ucla.edu
> > http://linux.ucla.edu/mailman/listinfo/linux
> >
>
>
> _______________________________________________
> UCLALUG Linux mailing list - Linux@linux.ucla.edu
> http://linux.ucla.edu/mailman/listinfo/linux
>