Re: Getopts variations(Interesting question!)!!!!

Sandip Bhattacharya <[email protected]> Fri, 3 Sep 2004 12:46:04 +0530
Newsgroups gmane.user-groups.linux.delhi.devel
Organization Puroga Technologies Pvt. Ltd.
Message-ID <[email protected]>
On Friday 03 Sep 2004 12:37 pm, amitflu wrote:
>
> My question is how can we understand something
> like "--any-status" or big strings passed by the
> user.
>
> My application want user to pass "--any-status"
> when he wants to view the status.
>

Amit, if this and your previous requirement are any indication, you are better 
off with Perl than shell script for reasons of portability.

What you are looking for is the "long" variant of getopt. I dont know whether 
it is available for the shell, but you are better off with Getopt::Long in 
perl.

- Sandip

-- 
Sandip Bhattacharya    *    Puroga Technologies   *     sandip-/[email protected]
Work: http://www.puroga.com        *         Home: http://www.sandipb.net

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3

Don't let go of what you've got hold of, until you have hold of something 
else.
		-- First Rule of Wing Walking