Check Argument in Bash Jan 15, 2019 • Ulysses How to check for an argument in a script in Bash. <pre lang="bash"> if [ -z "$1" ] ; then echo "there are no arguments" else echo "there is an argument" fi