In message <[EMAIL PROTECTED]>, James writes:
> On Sun, Nov 19, 2000 at 03:11:38PM +0800, Jing-Tang Keith Jang wrote:
> > On 11/18/00, James wrote:
> > > Or for a much faster solution:
> > > find /usr/ports -type d -name work -prune -print -exec rm -r {} \;
> > 
> > why not just "cd /usr/ports; rm -fr */*/work"?
> 
> If I understand it correctly, there is a limit to the maximum number
> of command line arguments that a program can have.

That all depends on the number of work directories you have.  If it's a 
few than letting the shell search for work directories is not a 
problem.  If it's many then a find command piped to xargs is the most 
efficient answer.  I think that people might have an idea of how much 
needs to be cleaned up, then choose the tool that works best.


Regards,                       Phone:  (250)387-8437
Cy Schubert                      Fax:  (250)387-5766
Team Leader, Sun/DEC Team   Internet:  [EMAIL PROTECTED]
Open Systems Group, ITSD, ISTA
Province of BC





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to