Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2004 11:13:13 +0930
From:      "Paul A. Hoadley" <paulh@logicsquad.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: find -exec surprisingly slow
Message-ID:  <20040815014313.GD25751@grover.logicsquad.net>
In-Reply-To: <20040814233933.GA14322@happy-idiot-talk.infracaninophile.co.uk>
References:  <20040814230143.GB8610@grover.logicsquad.net> <20040814233933.GA14322@happy-idiot-talk.infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040815014313.GD25751>