Answers for "shell check is not empty"

C#
15

bash if null or empty

if [ -z "$variable" ];
  then echo "$variable is null";
  else echo "$variable is not null";
fi
Posted by: Guest on April-19-2020
2

bash check if variable is empty

if [ -z "$var" ] #return true if $var is unset
Posted by: Guest on February-05-2021

Code answers related to "shell check is not empty"

C# Answers by Framework

Browse Popular Code Answers by Language