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

Sampsa Laine sampsa at mac.com
Fri Feb 8 16:53:20 PST 2013


Actually, it'd be useful to drop both the parenthesis (i.e. "(" and ")") so I can prepend the proper href for the "(", I am totally out of my depth here, could you tell me what to change in the EDITCMD.EDT


sampsa






On 9 Feb 2013, at 02:42, Jordi Guillaumes i Pons <jg at jordi.guillaumes.name> wrote:

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