Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnews!ask From: ask@cbnews.ATT.COM (Arthur S. Kamlet) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Keywords: Help! Message-ID: <13776@cbnews.ATT.COM> Date: 6 Feb 90 19:06:31 GMT References: <1990Feb1.164704.23581@athena.mit.edu> Reply-To: ask@cbnews.ATT.COM (Arthur S. Kamlet) Distribution: usa Organization: AT&T Bell Laboratories Lines: 24 In article <1990Feb1.164704.23581@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: >In article <5622@udccvax1.acs.udel.EDU>, william@vax1.acs.udel.EDU >(William H. York) writes: >> 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? > I don't know how to do it in vi; I use emacs :-) ("M-x replace-string > ^Q ^M "). In vi, do this: :g/^V^M/s/// The -V allows you to enter the -M in the ex command -- Art Kamlet a_s_kamlet@att.com AT&T Bell Laboratories, Columbus