DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Look Up RAE Spanish Dictionary

04.29.2009
| 2369 views |
  • submit to reddit
        
#!/bin/bash
# rae [palabra1 ... palabraN]
set -e
LINK="http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&LEMA"

for WORD in $*; do
    echo "buscando... $WORD"
    lynx -dump --nolist "$LINK=$WORD" | grep -v "Real Academia"
done