Skip to content

Instantly share code, notes, and snippets.

@rjp
Created January 31, 2009 08:02
Show Gist options
  • Save rjp/55478 to your computer and use it in GitHub Desktop.
Save rjp/55478 to your computer and use it in GitHub Desktop.
rjp> unset b;b[0]=m;b[1]=o;b[2]=o
for i in $(seq 0 25); do
a=$(echo ${b[*]} | tr -d ' ')
z=$(lynx -nolist -dump "http://www.google.co.uk/search?q=$a&ie=utf-8&oe=utf-8" | sed -ne 's/Results .* of about \([^ ]*\) .*$/\1/p' | tr -d ',')
echo $((i+2)) $z
b[${#b[*]}]=o
sleep 1
done > plotpoints.csv
rjp> ploticus -png -o ~/public_html/mooo.png -prefab lines x=1 y=2 ylog=log data=plotpoints.csv delim=space pointsym=none linedet="color=skyblue width=0.5" xlbl="number of Os" ylbl="hits in the google"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment