Skip to content

Instantly share code, notes, and snippets.

@elken
Created January 19, 2014 17:26
Show Gist options
  • Select an option

  • Save elken/8508046 to your computer and use it in GitHub Desktop.

Select an option

Save elken/8508046 to your computer and use it in GitHub Desktop.
Script to wget all github repos in tmp file
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