On Thu, 7 Apr 2005, G. Vamsee Krishna wrote:
>Would be nice though if it says that `rm' does the same thing to
>directories too. I still remember using `rmdir' on an empty directory
>about 2 years ago when I started using GNU/Linux.
rmdir can still be useful as a less-dangerous alternative to rm -r;
rmdir * will only wipe empty directories, although I was overjoyed when
I found this worked:
$ find dirname -depth -type d -empty -exec rmdir -v -- '{}' ';'
Cheers,
Phil