Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!woan.austin.ibm.com!ron From: ron@woan.austin.ibm.com (Ronald S. Woan/2113674) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Keywords: use tr or alternatively, use ZMODEM for transfers. Message-ID: <1414@awdprime.UUCP> Date: 1 Feb 90 15:16:06 GMT References: <5622@udccvax1.acs.udel.EDU> Sender: news@awdprime.UUCP Reply-To: @cs.utexas.edu:ibmchs!auschs!woan.austin.ibm.com!ron Organization: IBM-Austin, AWD Lines: 24 In article <5622@udccvax1.acs.udel.EDU>, william@vax1.acs.udel.EDU (Wi 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? The "^M's" are a result of Microsoft's brain damaged decision to use CR/LF to signify end-of-lines. They can be canned by using the delete function of the standard "tr" command. I forget for the moment the hex representation of "^M", but you can look it up in any standard ASCII table. Alternatively, use kermit or zmodem to upload with the text option that will automatically strip "^M" going up or add them when downloading. I would recommend zmodem for its "on-the-fly" compression of text as well. Ron +-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+ +------------------------------My Employer----------------------------------+ + Ronald S. Woan (IBM VNET)WOAN AT AUSTIN, (AUSTIN)ron@woan.austin.ibm.com + + outside of IBM @cs.utexas.edu:ibmaus!auschs!woan.austin.ibm.com!ron + + last resort woan@peyote.cactus.org +