Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Bob Vickers <bobv@dcs.rhbnc.ac.uk>
To: Slavisa Lukic <lukic@landisgyr.com>
Subject: Re: command_XXX: Arg list too long
Date: 1997/04/10	[thread overview]
Message-ID: <334CA3E8.41C6@dcs.rhbnc.ac.uk> (raw)
In-Reply-To: 334C7A40.21CE4612@landisgyr.com


Slavisa Lukic wrote:
> =

> I have a directory containing about 3000 files (RCS repository). When
> try to start command using * (ls *, rlog *,...) I get the error message=

> for example :
> "rlog: Arg list to long".
> =

> I have two questions:
> =

> 1. Is there a possibility to increase the maximum argument list length.=

> 2. If not possible, is there a better possibility to process each file
> than to make a "for f in =B4ls RCS=B4 ...." and do it for each file
> separate. I mean say take a portion of 500 files a once.
> =

Hi,

2 points:
(1) Don't use 'ls *' , use 'ls' or 'ls -R'
(2) The general solution to this problem is to use the xargs command.
See the man page.

Good luck,
Bob
-- =

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Bob Vickers			R.Vickers@rhbnc.ac.uk
Dept of Computer Science, Royal Holloway College, University of London
WWW:	http://www.dcs.rhbnc.ac.uk/%7Ebobv/
Phone:	+44 1784 443691



  reply	other threads:[~1997-04-10  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-10  4:00 command_XXX: Arg list too long Slavisa Lukic
1997-04-10  4:00 ` Bob Vickers [this message]
1997-04-10  4:00 ` D. Sean Davidson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox