Created
May 20, 2019 19:15
-
-
Save yarick/4b8508583a95d874b4c944aa32c70b27 to your computer and use it in GitHub Desktop.
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 | |
for i in {1..10}; do | |
echo $i | |
curl -s "https://api.github.com/orgs/mitre/repos?page=$i&per_page=100" | ruby -rrubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone --recurse-submodules --recurse #{repo["ssh_url"]} ]}' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment