Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
assign default value in shell script
Robert Furber
Programming language:
Shell/Bash
2021-07-15 13:24:16
0
Q:
assign default value in shell script
Kas
Code:
Shell/Bash
2021-03-24 16:44:29
FOO=${VARIABLE:-default} # If variable not set or null, use default.
1
Tags
value
shell
sign
script
Related
bash eval variable
powershell set environment variable
shell script variable
how to assign values from a loop in bash to a single variabel
how to assign a value to a variable in batch script using powershell
shell set environment variable
bash how to pass shell variables to awk
change default shell fish
New to Communities?
Join the community