Codebase list findbugs / ae8b2526-32e9-4b37-8f72-25923ca1a232/main etc / summarizeBugs
ae8b2526-32e9-4b37-8f72-25923ca1a232/main

Tree @ae8b2526-32e9-4b37-8f72-25923ca1a232/main (Download .tar.gz)

summarizeBugs @ae8b2526-32e9-4b37-8f72-25923ca1a232/mainraw · history · blame

#! /usr/bin/perl

use strict qw(refs vars);

my %counts = ();

while (<>) {
	if (/^(\S+\s+)?(\S+):/) {
		$counts{$2}++;
	}
}

foreach my $key (sort keys %counts) {
	my $count = $counts{$key};
	print "$key:\t$count\n";
}