Answers for "bash if var not exist"

0

bash if var not exist

if [ -z "$var" ]
then
      echo "\$var is empty"
else
      echo "\$var is NOT empty"
fi
Posted by: Guest on March-30-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language