All pastes #43904 Raw Edit

Anonymous

public text v1 · immutable
#43904 ·published 2006-03-01 02:11 UTC
rendered paste body
while (<STDIN>) {
    chomp;
    ($gcos) = (split /:/)[4];
    ($real) = split(/,/, $gcos);
    ($first) = split(/\s+/, $real);
    $seen{$first}++;
                    {
    print "$gcos\n";
    print "$real\n";
    #print "$first  $seen\n";
    #print "$real\n";
  }
}
foreach (keys %seen) {
    if ($seen{$_} > 1) {
        print "$_ was seen $seen{$_} times\n";
    }
}