[UCLA-LUG] Getting rid of "^M"s in vi
MARQUEZ,RANDELL JAMES
rmarquez@ucla.edu
Fri, 7 Jul 2000 15:55:02 -0700 (PDT)
Also, if you are editing this file after getting it by using ftp, that
means that you chose to transfer using 'bytes' instead of 'ascii' (or
maybe it's the other way around..hrm). This is just my suspicioun as to
what was happening since I've seen all the ^M's get appended onto files
that come over FTP incorrectly. Have fun...
-randy
On Fri, 7 Jul 2000, James Lee wrote:
> "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
>