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

Sampsa Laine sampsa at mac.com
Fri Feb 8 17:26:53 PST 2013


That's pretty nifty - but I realised that with a bit of python I can strip out the stuff that isn't really of interest to people such as the interface and next node etc.

Thanks for the help though, TECO still looks like modem line noise to me..:)


sampsa






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

On 2013-02-09 02:06, Sampsa Laine wrote:
Crap, just realised this won't work, I need to duplicate the strings i.e. one for the href, one for the actual text.

I'm just gonna write a little python script to do it..

This is what I was wondering already initially, hence my question about if you didn't want a little more than just the <a> for the tag...

Anyway, TECO to the rescue...

Hold on to your hat. Were we go. A complete TECO program for this. Replace all dollar signs with ESCAPE.

<fs($(<a href="hecnetinfo.com?q=$;.UAS)$-CQA,.XAI">$GAI</a>$>EX$$

Clear as a spring rain.

Let me know if you want me to explain it... ;-)

	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