Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash if flags

if [ -z $my_var ] # returns True if my_var is null

if [ -n $my_var ] # return False if my_var is null
Source by linuxhint.com #
 
PREVIOUS NEXT
Tagged: #bash #flags
ADD COMMENT
Topic
Name
4+6 =