|
From: | Paul Eggert |
Subject: | bug#45924: RFE: rmdir -r: recursively remove [empty] directories under the target. |
Date: | Sun, 17 Jan 2021 14:18:58 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 1/16/21 4:29 PM, L A Walsh wrote:
Yes, you could do it some other way, like by using 'find'
That's what I'd do, yes. 'find DIR -depth -type d -exec rmdir {} +'. I doubt whether it's worth hacking on this at the C level (complicating the documentation too) when there's such a simple and portable way to do this unusual task already.
[Prev in Thread] | Current Thread | [Next in Thread] |