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

Stephen Rothwell sfr at canb.auug.org.au
Thu May 12 05:28:55 GMT 2005


On Thu, 12 May 2005 14:01:54 +1000 Antti.Roppola at brs.gov.au wrote:
>
> to fix it properly. However I just RTFM'ed and:
> 
>   find . -print0 |xargs -0 rm
> 
> The "-0" option says use null instead of white-space as a delimiter
> and the "-print0" option tells find use nulls at the end of each
> file name found.
> 
> Murphy says that now that I have worked around this annoyance, people
> will start using some other reserved character in their file names
> Probably single quotes as apostrophes.

But your command line above copes with anything ... since the only special
character now is NUL and NUL (and '/') are not allowed in filesnames on
Linux anyway.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20050512/09d2b03f/attachment.bin


More information about the linux mailing list