News for hackers. Stuff that matters.
Re:Things you (probably) didn't know about xargs by ori_b on Sunday June 26, 2011 @04:06PM (#2698951)
find . -name '.py' | grep 'import'

I don't think that works. That'll grep for files named '\import\',

Re:Things you (probably) didn't know about xargs by beambot on Sunday June 26, 2011 @04:39PM (#2699017)
I use xargs for the find + rm cases he mentions. However, if you just want the file names containing the words import, I rely exclusively on grep:

grep -r -l import *.py