find -exec surprisingly slow
Paul A. Hoadley
paulh at logicsquad.net
Sat Aug 14 18:43:16 PDT 2004
On Sun, Aug 15, 2004 at 12:39:33AM +0100, Matthew Seaman wrote:
> find . -atime +1 -print0 | xargs -0 -J % mv % /home/paulh/tmp/spam/sne/
>
> xargs defaults to taking up to 5,000 arguments from it's stdin to
> generate the mv commands (or up to ARG_MAX - 4096 = 61440 bytes), so
> that would have done the job with only 8 or so invocations of mv.
Thanks for that.
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
More information about the freebsd-questions
mailing list