Unable to delete LARGE folder

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Dec 7 16:37:45 UTC 2011


On Wed, Dec 07, 2011 at 11:37:02AM -0500, Lennart Sorensen wrote:
> posix find does NOT have a -delete option, so it is clearly NOT portable.
> 
> find foldername -exec rm {} \;
> 
> That is portable.  But calls rm a lot more times, hence the xargs.

The -print0 is unfortunately NOT portable.  Usually isn't needed either
though.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list