summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-15 15:58:16 +0100
committerErich Eckner <git@eckner.net>2020-01-15 15:58:16 +0100
commit86f11c46995cb19289e0904efc7a985245fa9389 (patch)
treecf63fac059d7216e61a8711990bd4a2d243e45e9
parent73444ead611a4fc308c783c4410c8220902bdc51 (diff)
downloadgpx-statistics-86f11c46995cb19289e0904efc7a985245fa9389.tar.xz
gpx-to-tsv: Zeit wird nicht geparst - andere sind schneller
-rwxr-xr-xgpx-to-tsv10
1 files changed, 1 insertions, 9 deletions
diff --git a/gpx-to-tsv b/gpx-to-tsv
index 22e6627..131fb9e 100755
--- a/gpx-to-tsv
+++ b/gpx-to-tsv
@@ -1,7 +1,5 @@
#!/bin/sh
-start=$(date +%s)
-
sed '
s/>/\0\n/g
s/</\n\0/g
@@ -29,10 +27,4 @@ sed '
\@^</trkseg><trkseg>$@ d
\@^</trkseg></trk>$@ d
w /dev/stderr
-' \
-| while read -r lat lon ele time; do
- printf '%s\t' "${lat}" "${lon}" "${ele}"
- date -d"${time}" +%s
-done
-
-echo $(($(date +%s)-start))
+'