diff --git a/bin/utils b/bin/utils index d849e0c7ea94ae5b13594e45d11302998b210d9e..ce7f63249ad42a3c5e73b153460b97d61c03bff1 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 '{}' \; +} + +