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

Sampsa Laine sampsa at mac.com
Fri Feb 8 16:23:58 PST 2013



On 9 Feb 2013, at 02:05, Johnny Billquist <bqt at softjar.se> wrote:

On 2013-02-09 00:59, Sampsa Laine wrote:
I'm thinking of tweaking the HECNET infoservice* on RHESUS, and figured it'd be nice if the nodes in the output of NCP SHOW KNOWN NODES were hyperlinks.

On Unix I would just replace all the "(" characters with an opening <a> + "(" tag and all the ")" with a closing </a> tag + ")" using sed.

What's the correct DCL way to do this?

sampsa


* This is the page I'm thinking of tweaking: http://rhesus.sampsa.com/cgi-bin/hecnetinfo/hecnetinfo.com

TECO? :-)

<FS($(<a>$FS)$</a>)$;>

But I don't think just a <a> tag would be enough, would it? Wouldn't you want a href in there, and so on?

Of course, but I left that out for the sake of brevity. How do I invoke TECO on VMS? I've only heard apocryphal tales of it's less than simple syntax, never actually used it..

sampsa



More information about the Hecnet-list mailing list