develooper Front page | perl.beginners | Postings from April 2002

Re: perl equivalent

Thread Previous | Thread Next
April 2, 2002 18:28
Re: perl equivalent
Message ID:

On Tuesday, April 2, 2002, at 04:39 , Anand, Pankaj wrote:

> I need a small help .

nothing untoward - you might like:
I'll not try to be TOO harsh about some of what you could
have done to make that /bin/sh script less, well... issue laden.

And DON'T ASK what I have done in /bin/sh - I may tell you...

> I have one script with these commands.But I think perl can do it
> efficiently.

I have dummied up some data:
	from a b c d field4 t BOB
	UNBIND a=b=field4 f5 get
	from a b c d feld4 t get
	UNBIND a=b=feld4 f5 BOB
	from a b c d f4 t kill
	UNBIND a=b=f4 f5 BOB

and put the 'from' before the UNBIND - the only excuse I
can imagine for the MultiParseTheFile Approach.

the output is
vladimir: 55:]cat /tmp/ipop
get       BOB
kill       BOB
BOB       get
vladimir: 56:]

then may I highly recommend that you spring for a copy of

	Progamminng Perl 3rd Edition



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About