Skip to content

Instantly share code, notes, and snippets.

@dmarcelinobr
Created March 30, 2016 16:01
Show Gist options
  • Save dmarcelinobr/4c06b96a516d72f61a17345e3170dbef to your computer and use it in GitHub Desktop.
Save dmarcelinobr/4c06b96a516d72f61a17345e3170dbef to your computer and use it in GitHub Desktop.
Copia informações públicas no servidor do IBGE
#!/bin/bash
areas_de_ponderacao="ftp://geoftp.ibge.gov.br/malhas_digitais/censo_2010/areas_de_ponderacao/"
setores_censitarios="ftp://geoftp.ibge.gov.br/malhas_digitais/censo_2010/setores_censitarios/"
setores_censitarios_kmz="ftp://geoftp.ibge.gov.br/malhas_digitais/censo_2010/setores_censitarios_kmz/"
CNEFE="ftp://ftp.ibge.gov.br/Censos/Censo_Demografico_2010/Cadastro_Nacional_de_Enderecos_Fins_Estatisticos/"
date=`date +%F`
mkdir $date
cd $date
mkdir areas_de_ponderacao; cd areas_de_ponderacao; wget -nd -m $areas_de_ponderacao; cd ..
mkdir setores_censitarios; cd setores_censitarios; wget -nd -m $setores_censitarios; cd ..
mkdir setores_censitarios_kmz; cd setores_censitarios_kmz; wget -nd -m $setores_censitarios_kmz; cd ..
mkdir CNEFE; cd CNEFE; wget -nd -m $CNEFE; cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment