bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45924: RFE: rmdir -r: recursively remove [empty] directories under t


From: Paul Eggert
Subject: bug#45924: RFE: rmdir -r: recursively remove [empty] directories under the target.
Date: Mon, 18 Jan 2021 21:18:09 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 1/18/21 8:08 AM, Bernhard Voelker wrote:
On 1/17/21 11:18 PM, Paul Eggert wrote:
find DIR -depth -type d -exec rmdir {} +

find(1) can also find empty directories and delete them:

   $ find DIR -type d -empty -delete

Thanks, I'd forgotten about that.

I added the attached to the manual, as the point seems worth documenting even if we don't change the code.

Attachment: 0001-doc-rmdir-recursive-substitutes.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]