Create Default Variable Values
From Five Powerful Tips for Bash Scripting
Go to text ā
Create a Default Value for a Variable
echo "enter your name"
read name
name=${name:-Unknown}
If a user enters blank, your $name will be set to Unknown. The dash after the colon provides a default fallback value.