Last active
July 28, 2016 10:01
-
-
Save kvaps/c9b48f69a3c91ed4babf82f1c5a08b49 to your computer and use it in GitHub Desktop.
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
#!/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