bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #55095] please add "--count" to find


From: Bernhard Voelker
Subject: [bug #55095] please add "--count" to find
Date: Mon, 26 Nov 2018 03:48:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Update of bug #55095 (project findutils):

                Severity:              3 - Normal => 1 - Wish               

    _______________________________________________________

Follow-up Comment #4:

It is _not_ as easy as 'i++', what about the interference
with other options, e.g.:

  $ find . \( -name NAMEONE -quit \) -o \( -name NAMETWO -count \)

In that case, the -count action would not be performed if NAMEONE
was found first by chance.  The command following this would certainly
be quite surprised.

FWIW: my favorite for the general case is (although it needs a pointless
stat()):
  $ find .... -printf '.'  | wc

or, if no other tests/conditions are needed:
  $ du -s --inodes .      # (with GNU du)

Have a nice day,
Berny

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55095>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]