#!/bin/awk -f /^\-/ { loc[$NF] = 0 ; next } /^\+/ { loc[$NF] = $2 ; next } END { for (l in loc) print l ": " loc[l] }