Search
 
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
Name
6+8 =