Skip to content

Instantly share code, notes, and snippets.

@chrisjarman
Created September 29, 2016 20:03
Show Gist options
  • Save chrisjarman/72468930d2d41b1210dfbf1968da08b2 to your computer and use it in GitHub Desktop.
Save chrisjarman/72468930d2d41b1210dfbf1968da08b2 to your computer and use it in GitHub Desktop.
Bash script to substitute environment variables for placeholders, in-place.
#/usr/bin/env bash
TEMP=`mktemp`
envsubst < $1 > $TEMP
mv $TEMP $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment