Alexa Rank Checker

#! /bin/sh

wget -SO- http://www.alexa.com/siteinfo/{site url} 2>&1
| grep -i “alexa traffic rank” | sed -e ‘s/.*is ranked number //g’
| sed -e ‘s/in the world according.*//g’
| sed -e ‘s/,//g’ | grep ‘^[0-9]*’ -o >> {log file name}