Created
May 8, 2020 10:43
-
-
Save toanalien/0ae0e39089ebc78d951420919b56774a 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 | |
CNTX={users|orgs}; NAME={username|orgname}; PAGE=1 | |
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" | | |
grep -e 'git_url*' | | |
cut -d \" -f 4 | | |
xargs -L1 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment