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

foreach $n (@ARGV) {
    $n =~ s/\.o$//;
    $mods{"\"$n\""} = $n;
}

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