From 1d3508f66fddf3f8c6416e59ab9fbde405dbcf25 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 17 Nov 2019 09:18:07 +0800 Subject: update --- scripts/osm/osm.get.id | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/osm/osm.get.id (limited to 'scripts/osm/osm.get.id') diff --git a/scripts/osm/osm.get.id b/scripts/osm/osm.get.id new file mode 100644 index 0000000..93593b5 --- /dev/null +++ b/scripts/osm/osm.get.id @@ -0,0 +1,6 @@ +#! /bin/sh + +# $1 as [node|way|relation], $2 as id +echo "" +sed -nr "/^ *<$1 id=\"$2\".*/,/^ *<\/$1>/p" +echo "" -- cgit v1.2.3-70-g09d2