Skip to content

Instantly share code, notes, and snippets.

@caiobegotti
Created January 5, 2015 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caiobegotti/eedf58b360fd9b471280 to your computer and use it in GitHub Desktop.
Save caiobegotti/eedf58b360fd9b471280 to your computer and use it in GitHub Desktop.
Busca palavra no dicionário da ABL já pelo acordo ortográfico
#!/bin/bash -eu
# public domain
#
# caio1982@gmail.com
input=${1}
term=$(echo ${input} | xmlstarlet esc | sed -e 's/\&\#\x/\%/;s/\;//')
lynx -dump http://www.academia.org.br/sistema_busca_palavras_portuguesas/volta_voca_org.asp?palavra=${term} | sed -e '1!d' -e 's/^.* \([a-z]\+\) .*/\1/g'
exit 0
@caiobegotti
Copy link
Author

chmod +x volp.abl.sh
./volp.abl.sh estóico
./volp.abl.sh idéia
./volp.abl.sh vôo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment