Paramaters
From KlavoWiki
(Redirected from BASH Paramaters)
If you require to check for any paramaters when the BASH script is executed, you can check for $1, $2 .... etc.
if [ $1 = "whatever" ] then . . . . fi
If no paramatres are specified
if [ -z $1 ]; then . . . . fi