filename=${1:-/etc/hosts} atribui o valor /etc/hosts à variável filename se $1 não estiver definido ou nulo.
${parameter:-word}If
parameteris unset or null, the expansion of word is substituted. Otherwise, the value ofparameteris substituted.