home · contact · privacy
Fix faulty path.
[berlin-corona-table] / update.sh
1 #!/bin/sh
2
3 # Parse Lageso day table of new infections by district into new line for history table. 
4 today="$(date +%Y-%m-%d)"
5 curl https://www.berlin.de/lageso/_assets/gesundheit/publikationen/corona/bezirkstabelle.csv \
6 | awk 'BEGIN { FS=";"; ORS=""; print "'${today}'" }; '\
7 '!/^Bezirk/ { printf "%4d", $3 }; '\
8 'END { printf "\n" }' "${filename}" >> /home/plom/berlin-corona-table/daily_infections_table.txt
9
10 # Write enhanced table output to directory served by web server.
11 ./enhance_table.py > /var/www/html/berlin_corona.txt