jazz/09-09-25: classcloud_download.sh

File classcloud_download.sh, 732 bytes (added by jazz, 15 years ago)
Line 
1#!/bin/bash
2wget -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"
3j=0
4for 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
5echo "hadoop=$j";
6
7wget -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"
8k=0
9for 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
10echo "nutchez=$k";
11echo "total=$((j+k))";