From 42488a2be7d3117b836719ab9029f3348de2a23a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Wed, 17 Jul 2013 08:33:36 -0400 Subject: [PATCH] deep-rm --- bin/utils | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/utils b/bin/utils index d849e0c7..ce7f6324 100755 --- a/bin/utils +++ b/bin/utils @@ -52,3 +52,11 @@ function deep-mv (){ rm -fr $1/!(tmp) find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \; } + +# Does some serious deleting. +function deep-rm (){ + rm -fr $1/!(tmp) + find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \; +} + + -- GitLab