"dict" -- cool little snippet I saw on a GNOME list.
Ken Ambrose
kena at well.com
Wed Aug 28 17:36:02 EDT 2002
Ever wanna know the definition of a word?
Too darn lazy to fire up the browser?
Then enjoy the below script, for all you command-line guys (and gal(s))...
#!/bin/csh -f
set word=$1
# lynx is a text-based browser
# available free on the web/net.
lynx -cfg=/dev/null -dump "http://www.dictionary.com/cgi-bin/dict.pl?term=${word}"
Usage:
dict <word>
where <word> is whatever word you want. Prolly wanna pipe the output to
less, or your favorite pager...
-Ken
More information about the gnhlug-discuss
mailing list