> Peter C. Ndikuwera <[EMAIL PROTECTED]> wrote:
>
> exactly. find . -type f | xargs rm -f is faster than the 'exec' equivalent.
>
> In case your files have weird quotable characters, e.g. ` ' etc in them (or
> spaces) use:
>     find . -type f -print0 | xargs -0 rm -f

Nice one.  Prior to your email, I always used the [embarrasingly complex]
method below:

find . -type f | awk '{ system("rm -f \"" $0 "\""); }'


Regards,
Gerald.

_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to