Created
April 2, 2019 12:00
-
-
Save xlbruce/d5b34e54182f68730c24c80de4772539 to your computer and use it in GitHub Desktop.
Easy way to templating files with bash
This file contains 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
#!/bin/bash | |
content=$(cat template.txt) | |
rendered=$(eval echo $content) | |
echo $rendered |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment