bash si définir la variable
if [ -z "$var" ]; then echo "var is blank"; else echo "var is set to '$var'"; fi
Tiago F2
if [ -z "$var" ]; then echo "var is blank"; else echo "var is set to '$var'"; fi