Skip to content

Instantly share code, notes, and snippets.

@cpilsworth
Created July 17, 2019 11:34
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 cpilsworth/bf8e62797ff7bf65a7dfb399327f7148 to your computer and use it in GitHub Desktop.
Save cpilsworth/bf8e62797ff7bf65a7dfb399327f7148 to your computer and use it in GitHub Desktop.
‪env | grep "$TPL_PREFIX" | while read -r VAR;‬
‪do‬
‪ REPLACE="s/`echo "$VAR" | sed -e s,=,/,`/" ‬
‪ sed -e "$REPLACE" "$SOURCE_FILE" > "$TARGET_FILENAME"‬
‪done‬
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment