Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    If you can, use the -delete option for find, it doesn't fork for each file... Commented Apr 26, 2012 at 14:08
  • Added, cheers. Looks like -delete should be supported on recent GNU and BSD systems, while -print0 is GNU-only. So it's likely more portable too (although it shouldn't make a difference for the OP). Commented Apr 26, 2012 at 15:13
  • At least OS X's find has -print0, but it's not included in POSIX. Commented Apr 3, 2013 at 20:26