Debian Codegraph @

etc/summarizeBugs

raw
1 #! /usr/bin/perl
2
3 use strict qw(refs vars);
4
5 my %counts = ();
6
7 while (<>) {
8 if (/^(\S+\s+)?(\S+):/) {
9 $counts{$2}++;
10 }
11 }
12
13 foreach my $key (sort keys %counts) {
14 my $count = $counts{$key};
15 print "$key:\t$count\n";
16 }