BEGIN { FS = "&"; count[0]=0; } {count[$2$3]++;} END { for (i in count) { if (i!=0) print i " REPEATED " count[i]; } }