Answers for "bash if empty params"

0

bash if empty params

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