Commit f521032d authored by Sylvain Lesage's avatar Sylvain Lesage

Faltaba borrar los archivos temporales - + derecho de ejecución del script

parent bc377b61
......@@ -7,6 +7,8 @@ sql=/tmp/p.sql
# Bolivia
function dl_sql {
rm $pdf
rm $txt
wget http://computo2014.oep.org.bo/nal/p${1}.PDF -O $pdf
/usr/bin/pdftotext -raw $pdf $txt
cat $txt | sed 's/ [0-9\.]*\%/\%/' | sed 's/MAS-IPSP%/SELECT f_insert_resultado_2014_plurinacional_votos(25, '${2}', %/' | sed 's/%[0-9]*/&);/' | sed 's/%//' | grep f_insert_resultado_2014_plurinacional_votos >> $sql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment