From: pk on
Stachu 'Dozzie' K. wrote:

> That would end the topic for me.

What a relief.

From: Randal L. Schwartz on
>>>>> "James" == James <hslee911(a)yahoo.com> writes:

James> In unix, how to do efficiently
James> find and delete empty directories recursively

James> If no regular files (or symlink) present, it is considered as empty.
James> Directories with emtpy subdirectories are considered as empty
James> also.

find2perl . -depth -type d -eval rmdir | perl

*Very* efficient. Just ignores the errors. No forking.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion