Answers for "which of the following if statements can be used to check whether the string is non empty string in bash"

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

Code answers related to "which of the following if statements can be used to check whether the string is non empty string in bash"

C# Answers by Framework

Browse Popular Code Answers by Language