Answers for "check if bash variable is undefined"

0

check if bash variable is undefined

if test -z "$var" 
then
      echo "\$var is empty"
else
      echo "\$var is NOT empty"
fi
Posted by: Guest on August-16-2021

Code answers related to "check if bash variable is undefined"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language