Date: Sat, 25 Sep 2004 13:05:09 +0900 From: horio shoichi <bugsgrief@bugsgrief.net> To: freebsd-current@freebsd.org Subject: Re: Could ARG_MAX be increased? Message-ID: <20040925.040509.1c3d69aa1d0d33c0.10.0.3.20@bugsgrief.net> In-Reply-To: <20040924124211.GB2050@eddie.nitro.dk> References: <217202CB5FF8AE439E263CE3D48ECB50686C37@honda.int.hansa.lt> <p06110411bd78c249333c@[128.113.24.47]> <20040923184648.GB775@gothmog.gr> <20040924124211.GB2050@eddie.nitro.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Sep 2004 14:42:11 +0200 "Simon L. Nielsen" <simon@FreeBSD.org> wrote: > On 2004.09.23 21:46:48 +0300, Giorgos Keramidas wrote: > > On 2004-09-23 14:28, Garance A Drosihn <drosih@rpi.edu> wrote: > > > I have nothing against the idea of increasing the value of MAX_ARGS, > > > as long as people realize that increasing it will not solve the issue > > > for all situations. > > > > Yeah. I think the real answer is to learn about find as you and others > > have suggested. > > While it is correct that find is the best solution e.g. when > scripting, it can be a PITA e.g. when moving a lot of files that you > have to use find/xargs instead of simply "mv bla.*.1 dir/". I know > how to use find, but it takes somewhat longer to type... > > Just my 0.02(insert local currency). > > Anyway, I'm probably just going to bump MAX_ARGS locally on my next > world rebuild :-). > > -- > Simon L. Nielsen > FreeBSD Documentation Team > Many simple cases go with echo instead of find, so that the stupid "-maxdepth 1 -mindepth 1" phrase can be eliminated. E.g., following lines are equivalent in sh and t?csh: % mv bla.*.1 dir/ % echo bla.*.1|xargs -J% mv % dir/ Or even to (override 5000 limit may be necessary): % echo bla.*.1 dir/|xargs mv Hope this reduces your typing efforts. horio shoichi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040925.040509.1c3d69aa1d0d33c0.10.0.3.20>