typescript and ^M (In vi)
Jeff Beadles
jeff at onion.pdx.com
Tue Oct 30 01:13:34 AEST 1990
In <42995 at eerie.acsu.Buffalo.EDU> haozhou at 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 at onion.pdx.com
More information about the Comp.unix.shell
mailing list