Bash, jeśli flagi
if [ -z $my_var ] # returns True if my_var is null
if [ -n $my_var ] # return False if my_var is null
RicarHincapie
if [ -z $my_var ] # returns True if my_var is null
if [ -n $my_var ] # return False if my_var is null