in reply to Re^2: dynamic zcat and grep
in thread dynamic zcat and grep

Since you are on a Red Hat machine anyway, you can save yourself a lot of time just by using 'zgrep'.


We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re^4: dynamic zcat and grep
by clmcshque (Initiate) on Mar 22, 2006 at 20:30 UTC
    Thanks for the reply. zgrep works great on the command line, but how do I get it to work within my script? Could I do the following: (I would try it but don't have access to the system right now)
    $grep = /something/; $gzfile = file.gz; open OUTPUT "zgrep $grep $gzfile |";