Last active
September 13, 2016 05:40
-
-
Save kyleconroy/5937715 to your computer and use it in GitHub Desktop.
Bash templating made easy (Only works on Linux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export FOO=foo | |
export BAR=bar | |
envsubst < template.txt > output.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOO: $FOO | |
BAR: $BAR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment