This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (SOLVED) RFE: find <path> -d -size 0 => doesn't find empty directories


L A Walsh wrote:
On 10/31/2018 9:39 PM, Mark Geisert wrote:


I shouldn't have blindly trusted the Subject:.
---
    You did and gave the right answer.  I had forgotten about
empty -- though not sure why.  I guess I usually only use it for file
normally. For empty directories under /tmp, I usually use 'rmdir *'.

What I meant was, I blindly trusted "-d" to select directories. It doesn't. One has to explicitly say '-type d' to do that. 'man find' explains.
Cheers,

..mark


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]