Blame view
tools/scripts/LexPhonFilter.pl
274 Bytes
e6be5137b reinitialized pro... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/usr/bin/perl if(@ARGV != 1) { die("BAD USAGE: <(i) filter> "); } my $file; my %filter; open($file, $ARGV[0]); while(<$file>){ chomp($_); $filter{$_}++; } while(<STDIN>){ my @splittedLine = split(/\t/, $_); if(exists $filter{$splittedLine[0]}){ print $_; } } |