Timeline for How to remove all empty directories in a subtree?
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 27, 2024 at 9:03 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
Correct code for "don't delete top of seart tree"
|
| Aug 27, 2024 at 8:58 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
Correct code for "don't delete top of search tree"
|
| S Aug 27, 2024 at 6:54 | history | suggested | Greg Dubicki | CC BY-SA 4.0 |
Add info about mindepth (thx for testing it, @jsx97)
|
| Aug 18, 2024 at 16:34 | review | Suggested edits | |||
| S Aug 27, 2024 at 6:54 | |||||
| Apr 2, 2018 at 8:34 | comment | added | Christophe Drevet |
! has a special meaning for the shell. You need to escape it. Something like: \! -name 'Completed' just before -delete should work. Or you just put a marker file in this directory.
|
|
| Mar 31, 2018 at 23:27 | comment | added | aSystemOverload |
Great, but how would I omit directories with specific names, I've tried !(Completed), but it threw a -bash: !: event not found
|
|
| Aug 8, 2017 at 10:05 | comment | added | dokaspar | Great, but doesn't work on my old SunOS hosts... | |
| Mar 19, 2016 at 21:27 | vote | accept | maaartinus | ||
| Sep 19, 2014 at 15:57 | history | edited | Christophe Drevet | CC BY-SA 3.0 |
No need to use `-depth`, as commented by jamadagni
|
| Jan 2, 2014 at 14:54 | review | First posts | |||
| Jan 2, 2014 at 15:06 | |||||
| Jan 2, 2014 at 14:34 | history | answered | Christophe Drevet | CC BY-SA 3.0 |