Skip to content

Instantly share code, notes, and snippets.

@mmm
Created November 29, 2011 01:33
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 mmm/1402941 to your computer and use it in GitHub Desktop.
Save mmm/1402941 to your computer and use it in GitHub Desktop.
templating with bash/cheetah
# 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