summaryrefslogtreecommitdiffstats
path: root/utils/trimpcitable
blob: 9e05fb6598d0a9a3c205fed2effc66247a024c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

for $n (@ARGV) {
    $mods{$n} = $n
}

while (<STDIN>) {
    chop;
    @a = split;
    $mods{$a[2]} && print "$_\n";
}