Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if output is null bash

[[ -z "$my_var" ]] && echo "NULL"
[[ -z "$my_var" ]] && echo "NULL" || echo "Not NULL"
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #output #null #bash
ADD COMMENT
Topic
Name
9+8 =