Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!snorkelwacker!apple!vsi1!v7fs1!mvp From: mvp@v7fs1.UUCP (Mike Van Pelt) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Keywords: Help! Message-ID: <1352@v7fs1.UUCP> Date: 2 Feb 90 01:27:54 GMT References: <5622@udccvax1.acs.udel.EDU> Reply-To: mvp@v7fs1.UUCP (Mike Van Pelt) Distribution: usa Organization: Video 7 + G2 = Headland Technology Lines: 16 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? If you just want a way to do this in vi, I use the following all the time: :s/^M//g The trick is getting the ^M in the search string. You do this by pressing -V, followed by carriage return or -M. ^V is vi's quoting character. -- Mike Van Pelt "I'm not a biologist, but I play one in Headland Technology/Video 7 front of Congressional hearings." ...ames!vsi1!v7fs1!mvp -- Meryl Streep