On April 13, 2005 01:03 pm, Edward Catmur wrote:
> On Wed, 2005-04-13 at 12:54 -0400, daniel wrote:
> > i've been writing a series of more complicated shell scripts lately and
> > i've found myself looking for ways to pass options to it in a fashion
> > like so:
> >
> >   # scriptname -o -p -t -i -o -n
> >
> > or this:
> >
> >   # scriptname --someoption=stuff
>
> Google for the 'getopts' bash builtin. I think it's in the Advanced Bash
> Scripting Guide.

thanks!  that's exactly what i needed:
  http://www.cs.mcgill.ca/~abatko/computers/programming/perl/howto/getopts/
  http://enterprise.linux.com/article.pl?sid=04/10/20/0352257&tid=47&tid=94

-- 
I reattached a girl's leg. Her whole leg. She named her hamster after me. I 
got a hamster. He drops a box of money, he gets a town.
        - Simon, Firefly, "Jaynestown"
--
gentoo-user@gentoo.org mailing list

Reply via email to