nsbin/rrmdir
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

9 lines
182 B
Bash
Executable file

#!/bin/sh
if [ $# -lt 1 ]; then
echo 'Error: missing arguments' 1>&2
echo 'Usage: rmdirtree file [file ...]' 1>&2
exit 1
fi
find "$@" -depth -type d -print0 | xargs -0 rmdir