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

Sampsa Laine sampsa at mac.com
Fri Feb 8 21:50:00 PST 2013


This is in a script though, not sure I really want to start scripting vim..


sampsa





On 9 Feb 2013, at 07:14, Dan B <dibi58 at gmail.com> wrote:

Would not be easier to use vi, (maybe was vim?,) ? I don't remember
how it ended up there, but we had vi on all VMS boxes, it is the same
syntax of sed and ed, like 1,$s/something/somethingelse/

On 2/8/13, Sampsa Laine <sampsa at mac.com> 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



More information about the Hecnet-list mailing list