Joined February 2012
·

Greg Nofi

Senior Data Engineer at BrainPOP
·
Brooklyn, NY
·
·

Thanks for the great comments, all.

I've been thinking more about this. The UNIX philosophy is that a program should do only one thing and do it well. So upon further reflection, I think it's strange that the find command tries to do so much. It's great at finding stuff, but now I'm not so sure I should also be using it to delete stuff or execute other commands.

Therefore, I think I'm going to go back to using the find and xargs combo.

Deleting with find is common, so there's a shortcut:
find . -name "*.pyc" -delete

I will have to check out pyclean. Thanks for the tip.

Achievements
184 Karma
6,007 Total ProTip Views
Interests & Skills