Last active
December 24, 2019 09:16
-
-
Save yudenzel/007c51dcd2db5e436610c9f5385f3ff7 to your computer and use it in GitHub Desktop.
Generate file from template file via substitution bash variables
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
function subst-template () { | |
(echo "cat << EOF"; cat "${1}"; echo "EOF") | bash | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment