Skip to content

Instantly share code, notes, and snippets.

@pavelthq
Forked from aguegu/octocats.sh
Created December 23, 2015 11:07
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 pavelthq/02f99f556d7b52f0fbfe to your computer and use it in GitHub Desktop.
Save pavelthq/02f99f556d7b52f0fbfe 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