Created
November 29, 2011 01:33
-
-
Save mmm/1402941 to your computer and use it in GitHub Desktop.
templating with bash/cheetah
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
# cheetah from the command line... | |
Template file: | |
hawk:~ $ cat junk.file | |
This is a file | |
With a $stupid_variable to expand | |
and maybe a common one like $HOME | |
Expand as a template: | |
hawk:~ $ stupid_variable="foo" cheetah fill --stdout --env junk.file | |
This is a file | |
With a foo to expand | |
and maybe a common one like /home/mmm | |
so you have to watch namespaces collision. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment