Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!dsac.dla.mil!dsachg1!dave From: dave@dsachg1.UUCP (Dave Pridgen) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Message-ID: <746@dsachg1.UUCP> Date: 2 Feb 90 17:30:11 GMT References: <5622@udccvax1.acs.udel.EDU> Distribution: usa Organization: Defense Logistics Agency Systems Automation Center, Ogden, UT Lines: 23 From article <5622@udccvax1.acs.udel.EDU>, by william@vax1.acs.udel.EDU (William H. York): > 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 Your upload protocol should remove the characters for you since they are not used in unix (unix uses the newline character). You have many choices: switch to a protocol that strips the , or use any of the Unix filter programs. Here is one written in tr. -- tr -d '\015' Just pipe your file through that. and that should solve your problem. David Pridgen Unify Corporation Site Consultant My opinions are my own.