Complete.Org: Mailing Lists: Archives: discussion: May 2000:
[aclug-L] Re: IDONTLOVEYOU
Home

[aclug-L] Re: IDONTLOVEYOU

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: IDONTLOVEYOU
From: Carl D Cravens <raven@xxxxxxxxxxx>
Date: Fri, 19 May 2000 07:44:15 -0500 (CDT)
Reply-to: discussion@xxxxxxxxx

On Thu, 18 May 2000, drbert wrote:

> > > find / -name '*.[mg][pi][3f]' -exec rm -f {} \;

> i'm not sure what you mean -- 'pipe the find to' 
> please, an example . . . . 

find / -name '*.mp3' | xargs rm -f

Instead of calling rm once for every file, this sends a list of file
names to xargs, which runs rm as few times as possible.  It chunks the
list of file names so that each chunk fits in the maximum command line
length.  For a large number of files, this can be quite a bit faster
because it lacks the overhead of starting up rm a few thousand times. 

--
Carl D Cravens (raven@xxxxxxxxxxx)
Talk is cheap because supply inevitably exceeds demand.


-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]