News for hackers. Stuff that matters.
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.
Re:Things you (probably) didn't know about xargs by sjs on Sunday June 26, 2011 @03:35PM (#2698857)
He got the command wrong but his point stands:

    find . -name '.py' -exec grep -H import '{}' \;
Re:Things you (probably) didn't know about xargs by ptramo on Sunday June 26, 2011 @05:21PM (#2699125)
No he doesn't. That's a completely stupid compared to xargs as soon as you have more than a few files. You're starting one grep process per file.

Thanks for the laugh though.

Re:Things you (probably) didn't know about xargs by sjs on Sunday June 26, 2011 @07:21PM (#2699421)
All of this is stupid compared to just using a good shell and doing grep import * * /*.py.