Skip to main content

Tweak this heading

ID
499550b
date
2024-06-19 16:33:38+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
84167fb
message
Tweak this heading
changed files
1 file, 8 additions, 2 deletions

Changed files

README.md (2975) → README.md (3076)

diff --git a/README.md b/README.md
index 731d789..a46af8f 100644
--- a/README.md
+++ b/README.md
@@ -12,9 +12,15 @@ More specifically, it deletes directories which are completely empty, or which o
 
 
 
-## Why not use `find . -type d -empty -delete`?
+## Why not use `find`?
 
-This command is the top answer on a [Unix Stack Exchange question](https://unix.stackexchange.com/a/107556/431830) about how to delete empty directories.
+Deleting empty directories is a common problem, and there's a suggestion on [Unix Stack Exchange question](https://unix.stackexchange.com/a/107556/431830):
+
+> Combining GNU find options and predicates, this command should do the job:
+>
+> ```
+> find . -type d -empty -delete
+> ```
 
 The reason this isn't suitable is because it only deletes directories which are *completely* empty.
 But sometimes a directory can be non-empty, even if it appears empty.