#-- FILE: #-- lookup-fr-en.txt #-- DESCRIPTION: #-- Thisscript looks up the english translation of a #-- French word on the Harper-Collins Dictionary Site #-- AUTHOR: #-- mj bishop #-- DATES: may 02 #-- urls of online french dictionaries. sUrlHarperCollins="http://www.wordreference.com/fr/en/translation.asp?fren" if [ "$1" = "" ] then echo " usage: ./lookup-fr-en.txt frenchword This script returns the english meanings of a french word by looking up the site http://www.wordreference.com/ " exit 1 else sLookupWord="$1" fi #-- lookup english translation on internet. lynx --dump $sUrlHarperCollins=$sLookupWord \ | sed '/ *\[[0-9]*\]/d' \ | sed -n '/ *See Also/,/ *-The Collins/p' \ | sed -e '1d' -e '$d'