envsubst

envsubst#

Substitute shell-style $VAR references in text from the environment.

$ export NAME=world
$ echo 'hello $NAME' | envsubst
$ envsubst < template.conf > out.conf