summaryrefslogtreecommitdiff
blob: 146f4e4e28bc654b75cf6785a88acb0d870e402d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
	match($0, "<([A-Za-z0-9.-]+@[A-Za-z0-9.-]+)>") 
	val=substr($0, RSTART, RLENGTH)
	arr[val]++
	total++
}

END {
	for (x in arr) {
		printf("%35s: %-4d of %-4d (%-4.2f%)\n",x,arr[x],total,arr[x]*100/total)
		mytot += arr[x]
	}
	printf("%35s: %-4d of %-4d (%-4.2f%)\n","TOTAL",mytot, total,mytot*100/total)
}