Package list findbugs / 612ec2eb-6d2e-4bda-bf78-d1447ba55101/main etc / summarizeBugs
612ec2eb-6d2e-4bda-bf78-d1447ba55101/main

Tree @612ec2eb-6d2e-4bda-bf78-d1447ba55101/main (Download .tar.gz)

summarizeBugs @612ec2eb-6d2e-4bda-bf78-d1447ba55101/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";
}