Created
January 19, 2014 17:26
-
-
Save elken/8508046 to your computer and use it in GitHub Desktop.
Script to wget all github repos in tmp file
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
| for i in `cat tmp`; do | |
| PKGNAME=$(echo $i | cut -d "/" -f2) | |
| mkdir -p bundle/$PKGNAME | |
| wget -q https://github.com/$i/archive/master.zip -O $PKGNAME.zip >/dev/null | |
| unzip -qq $PKGNAME.zip -d bundle/$PKGNAME | |
| mv bundle/$PKGNAME/*/* bundle/$PKGNAME | |
| done | |
| find . -type d -empty -exec rmdir {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment