#!/bin/sh # fugly hack, but it'll do URL=http://www.squid-cache.org/Versions/v2/2.6/bugs/ mkdir $$ cd $$ wget $URL awk -F\" '/"squid-2.6.STABLE3-.*.patch"/ {print $2}' index.html \ | tac | uniq > patch.order wget --base $URL --input-file patch.order