Skip to content

Instantly share code, notes, and snippets.

View juliowaissman's full-sized avatar
🇲🇽
dándole

Julio Waissman juliowaissman

🇲🇽
dándole
View GitHub Profile
@diegovalle
diegovalle / censo_2020.sh
Last active July 27, 2023 15:45
Download the shapefiles from the 2020 Mexican census
#!/usr/bin/env bash
####################################################
# Make sure `rename` is available on your system
####################################################
# Exit on error, undefined and prevent pipeline errors,
# use '|| true' on commands that intentionally exit non-zero
set -euo pipefail
# The directory from which the script is running
readonly LOCALDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
readonly TARGET_DIR="$LOCALDIR/censo2020"