Skip to content

Instantly share code, notes, and snippets.

@lotsofcode
Created April 30, 2012 09:46
Show Gist options
  • Select an option

  • Save lotsofcode/2556913 to your computer and use it in GitHub Desktop.

Select an option

Save lotsofcode/2556913 to your computer and use it in GitHub Desktop.
iterate through templates and create sub-templates
TEMPLATES=$(cat templates.txt);
SUB_TEMPLATES=$(cat sub-templates.txt);
for SUB_TEMPLATE in $SUB_TEMPLATES; do
for TEMPLATE in $TEMPLATES; do
touch templates/$TEMPLATE.$SUB_TEMPLATES.txt
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment