bash script to extract some information from osm data imported in spatialite