Paramaters
From KlavoWiki
Jump to navigationJump to search
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