check if an argument is a file bash 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