Substitute Environment variable definition in template file by real values of ENV
${VARIABLE} Value of $VARIABLE or empty if variable is not set.
${VARIABLE=default} Value of $VARIABLE or "default" if variable is not set.
${VARIABLE-} Value of $VARIABLE or skip whole line if variable is not set.
Print to console
$ envsub -i example.tpl
Save to file
$ envsub -i example.tpl > output.conf