# this awk program gives frequency of occurance of all names in a field. { ++sum[$5] } END {for (name in sum) print name, sum[name]} .