Skip to content

Instantly share code, notes, and snippets.

@aguegu
Last active December 23, 2015 11:07
Show Gist options
  • Save aguegu/5712299 to your computer and use it in GitHub Desktop.
Save aguegu/5712299 to your computer and use it in GitHub Desktop.
A bash script to download all Octocats logos from http://octodex.github.com/
#!/bin/zsh
curl -s "https://octodex.github.com/" | grep "<img.*data-src" | grep -o "/image[^\"]*" | while read line; do
wget 'https://octodex.github.com'$line
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment