Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!motcsd!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Message-ID: <10650078@hpisod2.HP.COM> Date: 2 Feb 90 00:46:42 GMT References: <5622@udccvax1.acs.udel.EDU> Organization: Hewlett Packard, Cupertino Lines: 16 > 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@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