summaryrefslogtreecommitdiffhomepage
path: root/scripts/osm/osm.osm.remove
blob: fbbaf0cd46a9f6b1196e49be9fae962113554b40 (plain)
1
2
3
4
5
6
7
    while read -r line
    do
        # put element type and element ID into array
        array=( $(echo $line) )
        cat $1 |\
        sed -i "/<$array[1] id=\"$array[2]\"/,/<\/$array[1]>/ d"
    done