Script arguments Script arguments are passed as
Check if a given argument was provided if [ ! -n "$1" ] then echo "First argument not given" fi Handling errors from launched programs. Exit code from last executed command is in if [ "$?" -ne "0" ]; then echo "last command failed" exit 1 fi |