commit: fdffa7f1f65908d5cf58dd81ee6bbd87c142da43 parent 775029ef8d72cf488e21c53e5b2cfb32911c8b04 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Tue, 2 Jan 2018 01:42:26 +0100 notes/tips.md: + remove empty directoriesDiffstat:
M | notes/tips.md | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)diff --git a/notes/tips.md b/notes/tips.md
@@ -2,3 +2,8 @@ ```shell $ truncate --size 0 file_to_remove ``` + +## Remove empty directories +```shell +find . -type d -empty -exec rmdir "{}" \; +```