[HECnet] Easiest way to do 'sed' type search and replace on VMS...

Jordi Guillaumes i Pons jg at jordi.guillaumes.name
Fri Feb 8 16:42:16 PST 2013


Hmmmm... Try this, is really a 100% VMS way of doing it: 

$ TYPE EDITCMD.EDT
SUBST /(/<a>(/ WHOLE
SUBST @)@)</a>@ WHOLE
EXIT                                                   
$ edit/edt/command=editcmd.edt/output=barfoo.dat foobar.dat
.
.
.
.
.
.
424             62.4 <a>(COPOKA)</a>                                                                 TCP-0-0             8.400 <a>(GO
RVAX)</a>
  425             62.5 <a>(BOPOHA)</a>                                                                 TCP-0-0             8.400 <a>(GO
RVAX)</a>
  426             62.6 <a>(KOPOBA)</a>                                                                 TCP-0-0             8.400 <a>(GO
RVAX)</a>
  427             62.637 <a>(CTAKAH)</a>                                                             TCP-0-0             8.400 <a>(GO
RVAX)</a>                                                                                                                                                                   

Is that what you want?

El 09/02/2013, a les 1:36, Sampsa Laine <sampsa at mac.com> va escriure:

Actually, it's a bit stupid to call SHOW KNOW NODES on EVERY invocation, it's not like the data changes all THAT often. So I'm going to build a little DCL script to do this say every day and then just list the output of that instead of doing SHOW KNOWN NODES...


sampsa



Jordi Guillaumes i Pons
jg at jordi.guillaumes.name
HECnet: BITXOV::JGUILLAUMES



More information about the Hecnet-list mailing list