DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
Setting default variable value in bash
FOO="${VARIABLE:=default}" # If variable not set or null, set it to default.
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Setting
#default
#variable
#bash
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit