nsbin/rrmdir

10 lines
182 B
Text
Raw Normal View History

2006-07-20 07:54:37 +00:00
#!/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