how to search multiple textfiles ?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Sep 29 05:16:25 EDT 2008


In message
<bf1664da-1e2e-48c8-a108-66b0fb457e43 at k30g2000hse.googlegroups.com>, George
Sakkis wrote:

> $ find -name "*py" | xargs egrep "\bword\b"

Better:

    find -name '*.py' -exec grep -E "\bword\b" {} \;




More information about the Python-list mailing list