Skip to content

Instantly share code, notes, and snippets.

@xlbruce
Created April 2, 2019 12:00
Show Gist options
  • Save xlbruce/d5b34e54182f68730c24c80de4772539 to your computer and use it in GitHub Desktop.
Save xlbruce/d5b34e54182f68730c24c80de4772539 to your computer and use it in GitHub Desktop.
Easy way to templating files with bash
#!/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