🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1667

Re: typescript and ^M (In vi)

#1667
From: Jeff Beadles
Date: Mon, 29 Oct 1990 14:13
21 lines
1094 bytes
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:

	<ESCAPE>:%s/^V^M$//

(escape colon percent s slash control-v control-m dollar slash slash)

	-Jeff
-- 
Jeff Beadles		jeff@onion.pdx.com
Technical Details
Message-ID: <1990Oct29.141334.5532@onion.pdx.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!emory!wuarchive!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!nosun!qiclab!onion!jeff
References: <42995@eerie.acsu.Buffalo.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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