blob: aca092b9ca4e92009c93015460cd3afda90ba3bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/perl
use warnings;
use strict;
my @patterns = @ARGV;
my $pattern;
LINE: while (<STDIN>) {
for $pattern (@patterns) {
next LINE unless m/$pattern/;
}
print;
}
|