From 36ce0ee999ac8dcf98eb079139a1dd635d97eff8 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 14 Nov 2019 14:23:11 +0800 Subject: update --- utils/osm | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'utils') diff --git a/utils/osm b/utils/osm index 43fd9f6..7f08a98 100644 --- a/utils/osm +++ b/utils/osm @@ -159,20 +159,8 @@ osm.file.get.full() { file=$1; shift osmium getid $file $@ --output-format=osm --add-referenced } -# update .osm format STDIN with key-value -osm.update() { - # remove original tag&value - sed "/" - else - # just print it - sed '' - fi -} # $1 as osm file, $2 as diff file -osm.update2() { +osm.update() { while read -r line do array=( $(echo $line) ) @@ -183,10 +171,11 @@ osm.update2() { /"; else print $0} - ' > $1.updated + ' >> $1.updated done } # $1 as .osm file $2 as list of change content -- cgit v1.2.3-70-g09d2