table_path=daily_infections_table.txt
# If we don't have a table file yet, we need to provide its header.
header=" CW FK Li MH Mi Ne Pa Re Sp SZ TS TK sum"
table_path=daily_infections_table.txt
# If we don't have a table file yet, we need to provide its header.
header=" CW FK Li MH Mi Ne Pa Re Sp SZ TS TK sum"
today="$(date +%Y-%m-%d)"
curl "${CSV_URL}" \
| awk 'BEGIN { FS=";"; ORS=""; print "'${today}'" }; '\
'!/^Bezirk/ { printf "%4d", $3 }; '\
today="$(date +%Y-%m-%d)"
curl "${CSV_URL}" \
| awk 'BEGIN { FS=";"; ORS=""; print "'${today}'" }; '\
'!/^Bezirk/ { printf "%4d", $3 }; '\
# Write enhanced table output to directory served by web server.
./enhance_table.py "${table_path}" txt > /var/www/html/berlin_corona.txt
# Write enhanced table output to directory served by web server.
./enhance_table.py "${table_path}" txt > /var/www/html/berlin_corona.txt