Answers for "bash script check empty string"

0

bash script check empty string

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