Blame view
hn/script.sh
527 Bytes
68177745d Update indicators |
1 2 3 4 5 6 7 8 9 10 11 |
# !/bin/sh wget -c -r -l 1 http://www.daemonology.net/hn-daily/ ln -s -f www.daemonology.net/hn-daily cat hn-daily/[0-9][0-9][0-9][0-9]-[0-9][0-9].html | tr [:upper:] [:lower:] | tr [:punct:] ' ' | tr ' ' ' ' | grep -v ^$ | sort > words wget -c http://www.daemonology.net/hn-daily/2010.html cat 2010.html | tr [:upper:] [:lower:] | tr [:punct:] ' ' | tr ' ' ' ' | grep -v ^$ | sort | uniq > words_default fgrep -v -w -f words_default words > words_remaining grep -v ^[0-9] words_remaining | uniq -c | sort -n -r > statistic |