From: pk on 14 May 2010 05:40 Stachu 'Dozzie' K. wrote: > That would end the topic for me. What a relief.
From: Randal L. Schwartz on 14 May 2010 09:06 >>>>> "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
First
|
Prev
|
Pages: 1 2 3 4 Prev: Coloring stdin, stdout, stderr differently Next: replace strings based on a dictionary |