[WBEL-users] script bash and options

Jean Lee jean.lee at free.fr
Wed May 25 10:14:05 CDT 2005


Hello,

I would like to had an option when I launch my script in bash (like : 
backup.sh -c -h -j --usersdenied="kl")

I know that an argument can be passed to a command line ($1, $2,....) 
but I don't know how to write the script properly to :
- write the options in a different order (for example : backup.sh -j -h 
-c ...)
- write the options like this : -jhc
- options may not be wrotten too.

Or perhaps that I made a mistake and options are not arguments (like 
with : ls -l)

Does anybody knows ?

Thank you for your answer,

Jean



More information about the Whitebox-users mailing list