added hashmatch
[tridge/junkcode.git] / histogram.awk
1
2 {
3   counts[$0]++;
4   total++;
5 }
6
7 END {
8   for (v in counts) {
9     printf "%d (%.0f%%) %s\n", counts[v], (100*counts[v])/total, v;
10   }
11 }