#!/bin/csh

#egrep "( FC |\+FC|FUNNEL|SPOUT|TORNADO)" 2* | egrep -v "(KNEL|ESUT|KPPF|PCT FC|TORNADO WARNING)" | sort | uniq > tor.output
#egrep "( FC |\+FC|FUNNEL|TORNADO)" 2* | egrep -v "(KPPF|PCT FC|TORNADO WARNING)" | sort | uniq > torland.output

set stns = `cut -d":" -f2- tor.output | cut -c1-4 | sort | uniq`
foreach stn ($stns)
  set name = `grep $stn ../../stations.world | cut -d";" -f2-3`
  set count = `grep ":${stn}" tor.output | sort | uniq | wc -l`
  echo "${count}\t${stn}\t${name}" 
end
