Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash if set variable

if [ -z "$var" ]; then echo "var is blank"; else echo "var is set to '$var'"; fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #set #variable
ADD COMMENT
Topic
Name
2+4 =