Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sjs
on June 26, 2011
|
parent
|
context
|
favorite
| on:
Things you (probably) didn't know about xargs
He got the command wrong but his point stands:
find . -name '.py' -exec grep -H import '{}' \;
ptramo
on June 26, 2011
[–]
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.
sjs
on June 26, 2011
|
parent
[–]
All of this is stupid compared to just using a good shell and doing grep import * *
/*.py.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: