|
From: | Cook, Malcolm |
Subject: | RE: output of parallel pipe to another grep |
Date: | Thu, 20 Apr 2017 15:45:17 +0000 |
Not as written if you want the 2nd and 3rd grep to have been parallelized. As written, only the 1st zgrep will be. Try this instead: parallel ‘zgrep foo {} | grep bar | grep 192.168.1.100’ ::: 201612*.gz From: Parallel [mailto:parallel-bounces+mec=stowers.org@gnu.org]
On Behalf Of Asif Iqbal Hi I have multiple compressed files that I need to run grep against. I am trying to find 'foo', 'bar' and '192.168.1.100' against all the compressed log files. This will work? ls 201612*.gz | parallel zgrep foo {} | grep bar | grep 192.168.1.100 Thanks for such an awsome tool! -- Asif Iqbal |
[Prev in Thread] | Current Thread | [Next in Thread] |