[plug] deleting stuff in batches

Russell Steicke r.steicke at bom.gov.au
Fri Nov 11 09:21:54 WST 2005

On Thu, Nov 10, 2005 at 09:34:33PM +0800, Stuart Midgley wrote:
> find . -name "*.wma" -exec rm {} \;

That will work, but slowly if there are many files, as it will exec()
/bin/rm once for each file.  A quicker way:

  find . -name '*.wma' -print0 | xargs -0 rm

Russell Steicke

-- Fortune says:
I have just had eighteen whiskeys in a row.  I do believe that is a record.
		-- Dylan Thomas, his last words

More information about the plug mailing list