Skip to main content
6 events
when toggle format what by license comment
Apr 30 at 8:53 comment added Walf Deletion in a single pass is possible: find some-path/ -mindepth 1 -depth -type d -print0 | xargs -0r rmdir 2>/dev/null. This will pass non-empty dirs to xargs but rmdir won't delete them, and the warnings are silenced. The -mindepth just avoids deleting the search root, so omit it if you want.
Dec 13, 2015 at 18:54 vote accept Thodoris
Dec 12, 2015 at 21:22 history edited Trey CC BY-SA 3.0
syntax error
Dec 12, 2015 at 21:14 history edited Trey CC BY-SA 3.0
corrected wording
Dec 12, 2015 at 21:07 history edited Trey CC BY-SA 3.0
corrected wording
Dec 12, 2015 at 20:57 history answered Trey CC BY-SA 3.0