Tuesday, 1 October 2013

bash get names options in a script

bash get names options in a script

I want to invoke my bash shell script like so:
./myscript --dbName mydb --dbUser root --dbPass rootpass
How can i easily retrieve these in the script?
getopt looks like it will only work for single character options

No comments:

Post a Comment