Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!sri-spam!rutgers!iuvax!bsu-cs!atariman From: atariman@bsu-cs.UUCP (Jeff Scott) Newsgroups: comp.os.vms Subject: Re: Including in an EDT search string. How? Message-ID: <1360@bsu-cs.UUCP> Date: Wed, 28-Oct-87 10:21:02 EST Article-I.D.: bsu-cs.1360 Posted: Wed Oct 28 10:21:02 1987 Date-Received: Thu, 5-Nov-87 21:21:15 EST References: <550@cernvax.UUCP> Reply-To: atariman@bsu-cs.UUCP (Jeff Scott) Organization: Xetwnk Industries, Ltd. Lines: 46 In article <550@cernvax.UUCP> you write: >In VMS EDT (or LSE): > >How can I globally replace all occurrences of with something else? > --> ie How do I enter the character into the search string? > >Paul Burkimsher The way I do it is to create a short DCL command file with EDT something like the following that replaces all ASCII 27's with the string for printing reasons. $ ! Escapeout.com $ ! - JDS 1/1/87 $ edit 'p1 $ deck su /// w/notype ex noescape.txt $ eod When you create the above command file with EDT, create the first by typing the following: {gold}27{gold}{keypad-3}. {gold} is the PF1 key on some treminals, the F6 key on others. And {keypad-3} is the number 3 on the keypad. To execute the program you would use the command: $ @escapeout filename.ext Where filename.ext is the file you want to take the ESC characters out of. The resulting file will be saved as noescape.txt and the input file will be preserved. You can of course change the '' with any string or character and you can also change the output filename from noescape.txt to anything you choose. I would imagine that it is also possible to create a macro on EDT (or LSE) to do about the same thing, but I don't know how. Hope this helps. --Jeff Scott -------------------------------- {ihpn4|seismo}!{iuvax|pur-ee}!bsu-cs!atariman atariman@bsu-cs.UUCP Ball State University, Muncie, Indiana. ---------------------------------------------