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

Re: perl equivalent

Thread Previous | Thread Next
From:
drieux
Date:
April 2, 2002 18:28
Subject:
Re: perl equivalent
Message ID:
64CF000E-46AA-11D6-8BBB-0030654D3CAE@wetware.com

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

> I need a small help .

nothing untoward - you might like:
http://www.wetware.com/drieux/CS/lang/shellScript/
[..]
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:]

http://www.wetware.com/drieux/CS/lang/Perl/Beginners/sh_to_perl.txt

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

	Progamminng Perl 3rd Edition

ciao
drieux

---


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About