#-- FILE: #-- lookup-sp-en.txt #-- DESCRIPTION: looks up the english meanings of a #-- spanish word #-- AUTHOR: #-- mj bishop #-- DATES: june 2002 #-- TESTING: #-- This script has been tested on the Cygwin #-- unix emulator running on WinMe. #-- urls of online spanish dictionaries. sUrlHarperCollins="http://www.wordreference.com/es/en/translation.asp?spen" sUrlSpanishDict="http://www.spanishdict.com/AS.cfm?e" #-- Check for valid parameters if [ "$1" = "" ] then echo " usage: ./lookup-sp-en.txt spanishword This script looks up the English meanings of a Spanish word on the site http://www.wordreference.com/ and returns the result as plain text " exit 1 else sLookupWord="$1" fi lynx --dump $sUrlHarperCollins=$sLookupWord \ | sed -n '/\[3\]/,/\[4\]/p' \ | sed '1d'