Path: utzoo!utgpu!watserv1!watmath!att!att!emory!wuarchive!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!nosun!qiclab!onion!jeff From: jeff@onion.pdx.com (Jeff Beadles) Newsgroups: comp.unix.shell Subject: Re: typescript and ^M (In vi) Message-ID: <1990Oct29.141334.5532@onion.pdx.com> Date: 29 Oct 90 14:13:34 GMT References: <42995@eerie.acsu.Buffalo.EDU> Lines: 21 In <42995@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (hao zhou) writes: >Maybe this question was asked before ... It has. Maybe it's time to add to a faq... >Anyway I wonder if there is any filter I can use to get rid of ^M >(RETURN) in the typescript file. One way I can do it is to replace all >^M with null in emacs or vi. Is there any better way of doing this? In >other words, is it possible to create a typescript without CR chars? No, typescript files will have ^M, as it's in the data stream... Anyway, to remove them within vi, type: :%s/^V^M$// (escape colon percent s slash control-v control-m dollar slash slash) -Jeff -- Jeff Beadles jeff@onion.pdx.com