Package list findbugs / c1d41bf6-1670-436d-b563-f46880c3268c/main etc / summarizeBugs
c1d41bf6-1670-436d-b563-f46880c3268c/main

Tree @c1d41bf6-1670-436d-b563-f46880c3268c/main (Download .tar.gz)

summarizeBugs @c1d41bf6-1670-436d-b563-f46880c3268c/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";
}