Created
January 9, 2020 13:59
-
-
Save rhanka/a8419af265c083c2e45850ff93e2f658 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 | |
for file in `curl -s https://fichier-des-personnes-decedees.s3.fr-par.scw.cloud/ | \ | |
sed 's/<Key>/\n/g' | sed 's/<.*//' | egrep -i 'deces-.*.txt.gz'`;\ | |
do \ | |
(curl -s https://fichier-des-personnes-decedees.s3.fr-par.scw.cloud/echo $file > $file ) && \ | |
echo $file downloaded;\ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment