[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find -exec surprisingly slow
- Subject: find -exec surprisingly slow
- From: paulh at logicsquad.net (Paul A. Hoadley)
- Date: Sat Aug 14 18:43:19 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/
Visit your host, monkey.org