From 1818b69a09b02f09b8413049488dc0458a3cf6d7 Mon Sep 17 00:00:00 2001 From: scottc Date: Sun, 19 May 2024 12:21:31 +0000 Subject: [PATCH] Add header to csv --- export-to-steps-csv.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/export-to-steps-csv.sh b/export-to-steps-csv.sh index 944bced..4813b13 100644 --- a/export-to-steps-csv.sh +++ b/export-to-steps-csv.sh @@ -3,6 +3,7 @@ # Script to extract Huawei watch steps from Apple Health full export # into a csv file +echo '"Date","Steps"' cat export.xml | grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health"' | cut -d\" -f 14,16 |