When writing Bash scripts, how can I obtain a value from the command-line when provided as part of option flags in the command line?
For example in the following:
./script --value=myText --otherValue=100
How could I store the myText
and 100
values in the variables $text
and $num
?