DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+8 =
Submit