Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2002 20:55:30 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        David Miller <dmiller@sparks.net>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Overriding ARG_MAX
Message-ID:  <20020104205530.A25244@Odin.AC.HMC.Edu>
In-Reply-To: <3C3678D0.49B77037@mindspring.com>; from tlambert2@mindspring.com on Fri, Jan 04, 2002 at 07:53:52PM -0800
References:  <Pine.BSF.4.21.0201042145070.27496-100000@search.sparks.net> <20020104190303.A21307@Odin.AC.HMC.Edu> <3C3678D0.49B77037@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




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