commit 1cafaf935b940d2413c5f1c51988c1ba8405ae28 parent 28d6858ad21fa86773460548fd87c3754354114d Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Sun, 3 Oct 2021 21:03:49 -0700 Add script to recursively remove empty directories Diffstat:
| A | local/bin/bin/rrmdir | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/local/bin/bin/rrmdir b/local/bin/bin/rrmdir @@ -0,0 +1,5 @@ +#!/bin/sh +# Copyright 2021 Jacob R. Edwards +# Recursively remove empty directories + +exec find "$@" -type d -empty -delete