Re:Things you (probably) didn't know about xargs
by ptramo on Sunday June 26, 2011 @01:13PM
(#2698447)
No. You're looking for files having import in their path here, not in their contents.
[ Parent
| on HN ]
He got the command wrong but his point stands:
find . -name '.py' -exec grep -H import '{}' \;