diff options
Diffstat (limited to 'mpgrep')
-rwxr-xr-x | mpgrep | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,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; +} |