[UNCLASSIFIED]RE: [clug] What's the fastest way of deleting f iles ?

Antti.Roppola at brs.gov.au Antti.Roppola at brs.gov.au
Fri May 13 02:07:40 GMT 2005

Martin wrote:

>> I usually do this, but spaces in file names have been annoying me for
>> a long while when doing this to other people's data. but never enough
>> to fix it properly. However I just RTFM'ed and:
>>   find . -print0 |xargs -0 rm

>This will fail on subdirectories.

>I'd be surprised if it were much faster than 'rm -rf' anyhow.

Actually, chmod, chown and chgrp are the more usual recursive tasks
and I like to use find since I can pipe things through grep as well.


IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF).  The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material.  It is your responsibility to check any attachments for viruses and defects before opening or sending them on.  
Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited.  The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.  If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments.  If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly.  Only e-mail correspondence which includes this footer, has been authorised by DAFF 

More information about the linux mailing list