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

`-exec` doesn't necessarily spawn a bunch of processes. You can make it supply a list of files up to ARG_MAX with the `-exec echo {} +` syntax.

This is also a good use case for xargs, which makes the process even more flexible. You'd be able to do things like run programs concurrently with 256 files each, for example.



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

Search: