[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Could we have a flag to tell us which directories were actually remo
Re: Could we have a flag to tell us which directories were actually removed?
Thu, 16 Aug 2007 22:04:42 -0600
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/20070728 Thunderbird/184.108.40.206 Mnenhy/0.7.5.666
-----BEGIN PGP SIGNED MESSAGE-----
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 address@hidden
-----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
-----END PGP SIGNATURE-----
Re: Could we have a flag to tell us which directories were actually removed?, Bob Proulx, 2007/08/15