Bash, jeśli ustawiaj zmienną
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