From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,d7b865cce18843ce X-Google-Attributes: gidf678f,public From: Bob Vickers Subject: Re: command_XXX: Arg list too long Date: 1997/04/10 Message-ID: <334CA3E8.41C6@dcs.rhbnc.ac.uk>#1/1 X-Deja-AN: 231999754 References: <334C7A40.21CE4612@landisgyr.com> To: Slavisa Lukic Organization: Royal Holloway College, University of London Newsgroups: comp.unix.osf.misc 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