[HECnet] Easiest way to do 'sed' type search and replace on VMS...
Sampsa Laine
sampsa at mac.com
Fri Feb 8 16:33:21 PST 2013
On 9 Feb 2013, at 02:27, Cory Smelosky <b4 at gewt.net> wrote:
On 8 Feb 2013, at 19:23, Sampsa Laine <sampsa at mac.com> wrote:
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..
I believe edit/teco should work.
So the full command would look something like:
$MCR NCP SHOW KNOWN NODES TO FOOBAR
$EDIT/TECO FOOBAR.LIST
<FS($(<a>$FS)$</a>)$;>
[...something to quit TECO goes here...]
How do I exit TECO?
sampsa
More information about the Hecnet-list
mailing list