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. > > > > ls | xargs wc -l > > > > would work with an arbitrary number of files. > > 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 -- 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
msg30720/pgp00000.pgp
Description: PGP signature

