Add header to csv
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
# Script to extract Huawei watch steps from Apple Health full export
|
# Script to extract Huawei watch steps from Apple Health full export
|
||||||
# into a csv file
|
# into a csv file
|
||||||
|
|
||||||
|
echo '"Date","Steps"'
|
||||||
cat export.xml |
|
cat export.xml |
|
||||||
grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health"' |
|
grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health"' |
|
||||||
cut -d\" -f 14,16 |
|
cut -d\" -f 14,16 |
|
||||||
|
|||||||
Reference in New Issue
Block a user