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

James Lee jwlee@ucla.edu
Fri, 07 Jul 2000 15:38:00 -0700


"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