[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Allow "-f -" to work with zgrep
From: |
Carl Worth |
Subject: |
[PATCH] Allow "-f -" to work with zgrep |
Date: |
Sat, 24 Jan 2009 02:27:37 +1100 |
tags 168606 + patch
thanks
Here's a patch that allows the "-f -" option to work with zgrep in the
same way that it works with grep. For example:
$ echo "Example file matching pattern" > file
$ gzip -c file > file.gz
$ echo pattern | grep -f - file
Example file matching pattern
$ echo pattern | /bin/zgrep -f - file.gz
$ echo $?
1
$ echo pattern | ./zgrep -f - file.gz
Example file matching pattern
Please let me know if you have any questions.
-Carl
zgrep-with-pattern-on-stdin.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Allow "-f -" to work with zgrep,
Carl Worth <=