#!/bin/sh
#
#Grab the definition of a term from google
#Jeremy English <jhe@jeremyenglish.org>

wget -q "http://www.google.com/search?num=100&hl=en&q=%22`echo $@ | sed 's/  */+/g'`%22&ie=utf-8&oe=utf-8&aq=t&tbs=dfn:1" -U "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040613 Firefox/0.8.0+" -O - | awk 'BEGIN {RS="<li style=\"list-style:none\""; FS="(<|>)"}{ if($2 !~ /!doctype html/){printf( "%s\n\n\n",  $2)}}' | fmt | sed 's/&.*;//g'
