1 | #!/bin/bash |
---|
2 | 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" |
---|
3 | j=0 |
---|
4 | 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 |
---|
5 | echo "hadoop=$j"; |
---|
6 | |
---|
7 | 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" |
---|
8 | k=0 |
---|
9 | 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 |
---|
10 | echo "nutchez=$k"; |
---|
11 | echo "total=$((j+k))"; |
---|