summaryrefslogtreecommitdiffstats
path: root/mpgrep
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-03-12 15:10:00 +0100
committerFlorian Pritz <bluewind@xinu.at>2014-03-12 15:10:00 +0100
commit61812b45a006e774b179e9b8e65a5f12d777f5b1 (patch)
tree49f5050768e1abb9e96a178170094b0a6f580630 /mpgrep
parent17af39e657fd02ff208aedf8ad050dabf3aadc82 (diff)
downloadbin-61812b45a006e774b179e9b8e65a5f12d777f5b1.tar.gz
bin-61812b45a006e774b179e9b8e65a5f12d777f5b1.tar.xz
mpgrep: case insensitive matching
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'mpgrep')
-rwxr-xr-xmpgrep2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpgrep b/mpgrep
index 51a0d14..f4c90ee 100755
--- a/mpgrep
+++ b/mpgrep
@@ -11,7 +11,7 @@ my $pattern;
LINE: while (<STDIN>) {
for $pattern (@patterns) {
- next LINE unless m/$pattern/;
+ next LINE unless m/$pattern/i;
}
print;
}