-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Reuben Thomas on 8/16/2007 4:12 AM: >> Note that if you simply want to remove all empty directories >> (including e.g., those rendered empty by removing leaf dirs), >> you should also use -depth and -delete: >> >> find . -depth -type d -empty -delete
Furthermore, you can combine this with -print to get a list of which directories were successfully deleted. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGxR5a84KuGfSFAYARAvo5AJ9NhS8zKU1O8RWUXsg3nOO2w28ebACdEdAy LqEH9XMlx/l7e35bFNdCauc= =rFHK -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
