Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

check if a variable is null in bash

if [[ -n "$list_Data" ]]
then
    echo "not Empty"
else
    echo "empty"
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #variable #null #bash
ADD COMMENT
Topic
Name
1+8 =