From owner-freebsd-hackers Fri Jan 4 20:55:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 13E9237B41A for ; Fri, 4 Jan 2002 20:55:37 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g054tU025436; Fri, 4 Jan 2002 20:55:30 -0800 Date: Fri, 4 Jan 2002 20:55:30 -0800 From: Brooks Davis To: Terry Lambert Cc: David Miller , freebsd-hackers@FreeBSD.ORG Subject: Re: Overriding ARG_MAX Message-ID: <20020104205530.A25244@Odin.AC.HMC.Edu> References: <20020104190303.A21307@Odin.AC.HMC.Edu> <3C3678D0.49B77037@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3C3678D0.49B77037@mindspring.com>; from tlambert2@mindspring.com on Fri, Jan 04, 2002 at 07:53:52PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 04, 2002 at 07:53:52PM -0800, Terry Lambert wrote: > Brooks Davis wrote: > > > I have a system where I need/want to handle lots of files in a single > > > directory. Lots as in 100-200K files. ls | wc -l breaks because the > > > value of ARG_MAX in sys/syslimits.h is too small. If I change it from > > > 65536 to 4meg and rebuild the world it works fine. > >=20 > > ls | xargs wc -l > >=20 > > would work with an arbitrary number of files. >=20 > No, it wouldn't. Correct, I misread what he was trying to do. The second part of my answer is a working solution to do what he asked to do. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8NodCXY6L6fI4GtQRAh/TAKCalyiQyD7aXoDQnTB6ytsYqA+z4ACdFf84 KtaJ41gF5Npoi5Adj4hAYVQ= =AwjS -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message