Created
January 9, 2020 13:19
-
-
Save rhanka/c9df3fa9966eb312a59ab54879ba156b 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
#!/bin/bash | |
# ce fichier permet le téléchargement de l'intégralité des données insee et de les compresser | |
# il necessite l'installation de jq pour parser les json de l'api data.gouv.fr | |
curl -s https://www.data.gouv.fr/api/1/datasets/fichier-des-personnes-decedees/ | \ | |
jq '.resources[].url' | sed 's/^/curl -s /;s:/\(deces-.*\)":/\1" | gzip > \1.gz:' | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment