Skip to content

Instantly share code, notes, and snippets.

@yarick
Created May 20, 2019 19:15
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 yarick/4b8508583a95d874b4c944aa32c70b27 to your computer and use it in GitHub Desktop.
Save yarick/4b8508583a95d874b4c944aa32c70b27 to your computer and use it in GitHub Desktop.
#!/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