linux bash set variable default code example
Example: Setting default variable value in bash
FOO="${VARIABLE:=default}" # If variable not set or null, set it to default.
FOO="${VARIABLE:=default}" # If variable not set or null, set it to default.