|
Writing Unix script to accept arguments
Hi,
This may be answered elsewhere but I wasn't entirely sure of the wording I should use to search so here we go with an attempt:
I wish to make a script that will allow commands to be passed to it such as:
<command> -oOPTIONS -aANOTHER -pRINT
etc
However I don't really know the syntax of what to do ir how to accept them with in the code.
Like for example:
If I want it do run a certain command if -o equals "Fred".
If anyone has any help or "how to's" it would be most apprieciated.
|