From 0f24a51f34c4b548bb9d9ec2f0a24279af351ae2 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 3 Dec 2019 19:44:26 +0800 Subject: update --- scripts/match.sh | 60 +++++++++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 24 deletions(-) (limited to 'scripts') diff --git a/scripts/match.sh b/scripts/match.sh index f48f0a2..3c1216a 100755 --- a/scripts/match.sh +++ b/scripts/match.sh @@ -1,42 +1,54 @@ #! /bin/bash -set -x +#set -x ACCESS_TOKEN=$(cat ~/settings/tokens/mapbox) -export MAPBOX_ACCESS_TOKEN=$ACCESS_TOKEN -LIMIT=10 +#export MAPBOX_ACCESS_TOKEN=$ACCESS_TOKEN +LIMIT=100 +TRK_NAME=$(sed -nr 's/.*(.*)<\/name>.*/\1/p; //q' $1) +# Need to add pre-process for duplicated gpx trkpts paste -d' ' \ - <(sed -nr '//,/<\/trk>/ { s/.*