Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

He got the command wrong but his point stands:

    find . -name '.py' -exec grep -H import '{}' \;


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.


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: