#!/bin/bash
rm "rows.csv?accessType=DOWNLOAD"
wget "https://www.datos.gov.co/api/views/gt2j-8ykr/rows.csv?accessType=DOWNLOAD"
mv "rows.csv?accessType=DOWNLOAD" colombia.$1.csv
zip colombia.$1.csv.zip colombia.$1.csv
rm colombia.$1.csv
echo "Listo colombia.$1.csv.zip"
