Skip to content

Instantly share code, notes, and snippets.

@jtr109
Created December 10, 2019 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtr109/358eb3528a35e7c01b99ec643b6cd9a3 to your computer and use it in GitHub Desktop.
Save jtr109/358eb3528a35e7c01b99ec643b6cd9a3 to your computer and use it in GitHub Desktop.
export or not in env file
bash subenv.sh
bash subexp.sh
new foo here:
new foo here: var
export FOO=var
new foo here: ${FOO}
source env.conf
envsubst < "src.txt" > "env-tar.txt"
source exp.conf
envsubst < "src.txt" > "exp-tar.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment