^M 's in uploaded text files.

Dave Decot decot at hpisod2.HP.COM
Fri Feb 2 11:46:42 AEST 1990


> I use my PC to write text files in word perfect then I save in dos format
> to upload to our vax.  When the file is cat'ed, the ^M's don't show, but
> when vi'ing they become real annoying!  Is there a file I can pipe it 
> through to remove the ^M's or perhaps a way vi can be used to remove them?
> 
> Any help would be appreciated.
> 
> William at vax1.udel.edu

While in vi, type:

:g/^V^M/s///g^M

(where ^V represents typing control-V and ^M represents typing control-M).

Dave



More information about the Comp.unix.questions mailing list