Package list findbugs / 5fdfe956-1a81-48da-858f-070c116c6902/main etc / summarizeBugs
5fdfe956-1a81-48da-858f-070c116c6902/main

Tree @5fdfe956-1a81-48da-858f-070c116c6902/main (Download .tar.gz)

summarizeBugs @5fdfe956-1a81-48da-858f-070c116c6902/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";
}