Package list findbugs / 5c072dba-ab4e-484d-8280-d43e04746755/main etc / summarizeBugs
5c072dba-ab4e-484d-8280-d43e04746755/main

Tree @5c072dba-ab4e-484d-8280-d43e04746755/main (Download .tar.gz)

summarizeBugs @5c072dba-ab4e-484d-8280-d43e04746755/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";
}