From: Christian Heller Date: Tue, 21 Jul 2020 17:07:11 +0000 (+0200) Subject: Update awk with quotes now added to fields in CSV. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/template?a=commitdiff_plain;h=f999af3234dc2b3003e4a8c701b3d9b561ebdc3a;p=berlin-corona-table Update awk with quotes now added to fields in CSV. --- diff --git a/update.sh b/update.sh index ace8592..008f716 100755 --- a/update.sh +++ b/update.sh @@ -14,7 +14,7 @@ fi today="$(date +%Y-%m-%d)" curl "${CSV_URL}" \ | awk 'BEGIN { FS=";"; ORS=""; print "'${today}'" }; '\ -'!/^Bezirk/ { printf "%4d", $3 }; '\ +'!/^"Bezirk"/ { printf "%4d", $3 }; '\ 'END { printf "\n" }' "${filename}" >> "${table_path}" # Write enhanced table output to directory served by web server.