[HECnet] Easiest way to do 'sed' type search and replace on VMS...
Sampsa Laine
sampsa at mac.com
Sat Feb 9 05:46:20 PST 2013
On 9 Feb 2013, at 15:33, "Brian Schenkenberger, VAXman-" <system at TMESIS.COM> wrote:
Sampsa Laine <sampsa at mac.com> writes:
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?
EX$$
Also, if you need to put this into a script to do repeated edits of this
nature, you can put the TECo commands into the logical TEC$INIT. Getting
the ESCAPE into a logical string is left as an exercise for the original
poster. ;)
In the end I went with a Python script that build an HTML table, you can see it at http://rhesus.sampsa.com/cgi-bin/hecnetinfo/hecnetinfo.com
RHESUS is an dual processor Itanic so it runs Python quite snappily :)
sampsa
More information about the Hecnet-list
mailing list