wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
7x x top-1m.csv.zip
cat top-1m.csv | cut -d',' -f 2 | cut -c 1-1 | sort | uniq -c | awk '{ print $2, $1 }' > first1a.txt
cat top-1m.csv | cut -d',' -f 2 | cut -c 1-1 | sort | uniq -c | sort -nr > first1b.txt
cat top-1m.csv | cut -d',' -f 2 | cut -c 1-2 | sort | uniq -c | awk '{ print $2, $1 }' > first2a.txt
cat top-1m.csv | cut -d',' -f 2 | cut -c 1-2 | sort | uniq -c | sort -nr > first2b.txt