Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created December 17, 2020 12:30
Show Gist options
  • Save ruanbekker/4d7d2af68d68eb9802ecd4f4a130dfd8 to your computer and use it in GitHub Desktop.
Save ruanbekker/4d7d2af68d68eb9802ecd4f4a130dfd8 to your computer and use it in GitHub Desktop.
Replacing Environment Variables with envsubst
$ cat test.tmpl
Hi ${USER}, this is a ${ENVIRONMENT} environment
USER=ruan ENVIRONMENT=test envsubst '${USER},${ENVIRONMENT}' < test.tmpl
Hi ruan, this is a test environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment