eolas/zk/Check_if_value_null_in_Bash.md
2025-02-22 10:17:45 +00:00

174 B

tags created
shell
Wednesday, February 19, 2025

Check if value is null in Bash

if [ -z $var ]; then
  # Value is null
else
  # Value is not null
fi