--- tags: [shell] created: Wednesday, February 19, 2025 --- # Check if value is null in Bash ```sh if [ -z $var ]; then # Value is null else # Value is not null fi ```