Answers for "bash shell test if variable is null"

C#
2

bash check if variable is empty

if [ -z "$var" ] #return true if $var is unset
Posted by: Guest on February-05-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 "bash shell test if variable is null"

C# Answers by Framework

Browse Popular Code Answers by Language