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

It's more efficient to use the pipe with xargs. If you're removing 10,000 files, the difference in time between -exec (and fork/exec of rm 10,000 times) and xargs rm is quite significant. (On my system getconf MAX_ARGS is 2180000.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: