public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: (SOLVED) RFE: find <path> -d -size 0 => doesn't find empty directories
Date: Fri, 02 Nov 2018 05:33:00 -0000	[thread overview]
Message-ID: <77532797-caed-785e-c774-b415ec72a4f0@maxrnd.com> (raw)
In-Reply-To: <5BDB297B.4050401@tlinx.org>

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

  reply	other threads:[~2018-11-02  5:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31 23:02 L A Walsh
2018-11-01  0:02 ` Norton Allen
2018-11-01  1:16 ` Mark Geisert
2018-11-01  4:40   ` Mark Geisert
2018-11-01 16:27     ` (SOLVED) " L A Walsh
2018-11-02  5:33       ` Mark Geisert [this message]
2018-11-01 16:20 ` Andrey Repin
2018-11-02  5:05   ` Brian Inglis
2018-11-02 14:05     ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77532797-caed-785e-c774-b415ec72a4f0@maxrnd.com \
    --to=mark@maxrnd.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).