how to search multiple textfiles ?

George Sakkis george.sakkis at gmail.com
Mon Sep 29 18:00:10 EDT 2008


On Sep 29, 5:16 am, Lawrence D'Oliveiro <l... at geek-
central.gen.new_zealand> wrote:
> In message
> <bf1664da-1e2e-48c8-a108-66b0fb457... at k30g2000hse.googlegroups.com>, George
>
> Sakkis wrote:
> > $ find -name "*py" | xargs egrep "\bword\b"
>
> Better:
>
>     find -name '*.py' -exec grep -E "\bword\b" {} \;

In what way is this better ? I don't dispute it, I'm just curious.



More information about the Python-list mailing list