^M 's in uploaded text files.

Ronald S. Woan/2113674 ron at woan.austin.ibm.com
Fri Feb 2 02:16:06 AEST 1990


In article <5622 at udccvax1.acs.udel.EDU>, william at 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 at woan.austin.ibm.com +
+ outside of IBM       @cs.utexas.edu:ibmaus!auschs!woan.austin.ibm.com!ron +
+ last resort                                        woan at peyote.cactus.org +



More information about the Comp.unix.questions mailing list