|
From: | Ulf Zibis |
Subject: | bug#45924: RFE: rmdir -r: recursively remove [empty] directories under the target. |
Date: | Mon, 18 Jan 2021 22:05:40 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Am 18.01.21 um 11:53 schrieb L A Walsh:
Except that 'find DIR -depth -type d -exec rmdir {} +' is anything but simple and not something anyone outside of a minority of *nix users would have a clue about how to create, whereas 'rmdir -r DIR' is both direct and simple and more easily understandable by those who know how to remove a directory and recursively remove files. Applying the -r option of 'rm' and 'rd's focus on dirs seems a natural combination.
+1 Ulf
[Prev in Thread] | Current Thread | [Next in Thread] |