On 2021/01/18 08:08, Bernhard Voelker wrote:

find(1) can also ... [various examples of find's usefulness elided]
Have a nice day,
Berny
===
        As I stated in the original message:

On 2021/01/16 16:29, L A Walsh wrote:
Yes, you could do it some other way, like by using 'find',
but since it is about removing directories, having the option
under rmdir would seem a natural place to put it.

Thank you Bernhard, but numerous ways to do it with find don't really have the simplicity, of using "remove dir" for its
"raison d'être":

 rmdir -r DIR

 vs. find:

 find DIR -depth -type d -exec rmdir {} +


One could also use find to implement recursive file removal instead of
using 'rm', but that's hardly simple or straightforward as "rm -r"
either.








Reply via email to