From owner-freebsd-questions@FreeBSD.ORG Sun Aug 15 01:43:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E51416A4CE for ; Sun, 15 Aug 2004 01:43:16 +0000 (GMT) Received: from grover.logicsquad.net (ppp52-132.lns1.adl2.internode.on.net [150.101.52.132]) by mx1.FreeBSD.org (Postfix) with SMTP id 1ADB543D1F for ; Sun, 15 Aug 2004 01:43:15 +0000 (GMT) (envelope-from paulh@logicsquad.net) Received: (qmail 48801 invoked by uid 1000); 15 Aug 2004 01:43:14 -0000 Date: Sun, 15 Aug 2004 11:13:13 +0930 From: "Paul A. Hoadley" To: freebsd-questions@freebsd.org Message-ID: <20040815014313.GD25751@grover.logicsquad.net> References: <20040814230143.GB8610@grover.logicsquad.net> <20040814233933.GA14322@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040814233933.GA14322@happy-idiot-talk.infracaninophile.co.uk> User-Agent: Mutt/1.4.2.1i Subject: Re: find -exec surprisingly slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 01:43:16 -0000 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/