#!/bin/bash
wget -O hadoop.html "http://classcloud.org/cgi-bin/awstats.pl?urlfilter=hadoop.*\.deb&urlfilterex=&output=urldetail&config=classcloud.org&year=2009&month=all&framename=mainright"
j=0
for i in `grep "\"aws\"" hadoop.html | grep "hadoop" | sed 's#.*</a></td><td>##' | sed 's#</td>.*##'`; do echo "i=$i, j=$j"; j=$((j+i)); done
echo "hadoop=$j";

wget -O nutchez.html "http://trac.nchc.org.tw/cgi-bin/awstats.pl?urlfilter=nutchez_.*\.deb&urlfilterex=&month=all&year=2009&output=urldetail&config=trac.nchc.org.tw&framename=mainright"
k=0
for i in `grep "\"aws\"" nutchez.html | grep "nutchez" | sed 's#.*</a></td><td>##' | sed 's#</td>.*##'`; do echo "i=$i, k=$k"; k=$((k+i)); done
echo "nutchez=$k";
echo "total=$((j+k))";
