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. -- gentoo-user@gentoo.org mailing list