Answers for "if condition value not null shell script"

C#
0

sh is null if

VARIABLE="this variable is not null"
if [[ -z $VARIABLE ]]
then
   echo "is null"
else
   echo "is not null"
fi
Posted by: Guest on June-14-2021
0

check if a variable is null in bash

if [[ -n "$list_Data" ]]
then
    echo "not Empty"
else
    echo "empty"
fi
Posted by: Guest on March-20-2021

Code answers related to "if condition value not null shell script"

C# Answers by Framework

Browse Popular Code Answers by Language