From f999af3234dc2b3003e4a8c701b3d9b561ebdc3a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 21 Jul 2020 19:07:11 +0200 Subject: [PATCH] Update awk with quotes now added to fields in CSV. --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2