Created
July 20, 2012 09:23
-
-
Save gerjantd/3149847 to your computer and use it in GitHub Desktop.
Github: API v3 call for retrieving my public gists
This file contains hidden or 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 | |
mkdir mygists | |
cd mygists | |
curl -u "gerjantd" https://api.github.com/gists | json_xs > mygists.json | |
cat mygists.json | grep "\"id\"" | awk -F "\"" '{print $4}' > repos | |
for g in `cat repos`; do git clone [email protected]:$g.git gist-$g; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment