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

Johnny Billquist bqt at softjar.se
Fri Feb 8 16:05:52 PST 2013


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?


	Johnny

-- 
Johnny Billquist                                   || "I'm on a bus
                                                                  ||   on a psychedelic trip
email: bqt at softjar.se                         ||   Reading murder books
pdp is alive!                                         ||   tryin' to stay hip" - B. Idol



More information about the Hecnet-list mailing list