[aclug-L] Re: IDONTLOVEYOU
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
[aclug-L] Re: IDONTLOVEYOU, Maverick Ven-Han, Ieong, 2000/05/18
|
|