Created
September 18, 2017 03:00
-
-
Save FelipeSBarros/a233ccc40b700925375d36d9593c0b42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Atenção: | |
# comandos meramente ilustrativos. Vários parâmetros dos comando usados (shp2pgsql) foram ignorados! | |
# ${a%.*} remove a extenção .shp do nome | |
for a in *.shp; do echo "Convertentado $a"; shp2pgsql $a schema.table > ${a%.*}.sql; done | |
# Depois, para cada .SQL: | |
for b in *.sql; do psql -d iis -f $b; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment