Set default values for variables using ":-".
VARIABLE=${1:-DEFAULT_VALUE}
sets VARIABLE with the value of 1st Arg to DEFAULT_VALUE, if 1st arg is not entered.
VARIABLE=${1:-DEFAULT_VALUE}
sets VARIABLE with the value of 1st Arg to DEFAULT_VALUE, if 1st arg is not entered.
No comments :
Post a Comment