Skip to content

Instantly share code, notes, and snippets.

@kvaps
Last active July 28, 2016 10:01
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 kvaps/c9b48f69a3c91ed4babf82f1c5a08b49 to your computer and use it in GitHub Desktop.
Save kvaps/c9b48f69a3c91ed4babf82f1c5a08b49 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(onetemplate list -l ID -n | tail -n +2); do
onetemplate show $i | awk '/TEMPLATE CONTENTS/ {seen = 1} seen {print}' | tail -n +2 > $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment