Skip to content

Instantly share code, notes, and snippets.

@kyleconroy
Last active September 13, 2016 05:40
Show Gist options
  • Save kyleconroy/5937715 to your computer and use it in GitHub Desktop.
Save kyleconroy/5937715 to your computer and use it in GitHub Desktop.
Bash templating made easy (Only works on Linux)
#!/bin/bash
export FOO=foo
export BAR=bar
envsubst < template.txt > output.txt
FOO: $FOO
BAR: $BAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment