DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
assign default value in shell script
FOO=${VARIABLE:-default} # If variable not set or null, use default.
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#assign
#default
#shell
#script
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit