On Mar 17, 10:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> So I need to recursively grep a bunch of gzipped files.  This can't be
> easily done with grep, rgrep or zgrep.  (I'm sure given the right
> pipeline including using the find command it could be done....but
> seems like a hassle).

If it's for something quick & dirty, you can't beat the pipeline, e.g.
something like:

find some_dir -name "*gz"  | xargs -i sh -c "echo '== {} =='; zcat {}
| grep some_pattern"

George
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to