DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Download All Xkcd.com Comics
This goes through all the first 329 (you might want to change this) pages, downloading the comic strips.
#!/bin/bash for i in `seq 1 329` do wget http://xkcd.com/$i/ wget `grep http://imgs.xkcd.com/comics/ index.html | head -1 | cut -d\" -f2` rm index.html done