bash if argument in file code example
Example: bash if argument in file
if [ ! -z $1 ] #Check if argument for script is given
then var=$1
else var="argument_not_given"
fi
if [ ! -z $1 ] #Check if argument for script is given
then var=$1
else var="argument_not_given"
fi