#!/bin/csh

set ffs = `ls ../combo/2*.php`
foreach ff ($ffs)
    set prefix = `echo $ff | cut -d"/" -f3 | cut -d"." -f1`
    egrep -o "^[A-Z][A-Z,0-9][A-Z,0-9][A-Z,0-9] [0-9][0-9][0-9][0-9][0-9][0-9]Z" $ff | cut -d">" -f2 | cut -c1-4 | sort | uniq -c | sort -n > ${prefix}.ids
   echo $ff
end
