bug-findutils
[Top][All Lists]
Advanced

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

[bug #39897] [RFE] Add "--max-count" feature to find


From: James Youngman
Subject: [bug #39897] [RFE] Add "--max-count" feature to find
Date: Fri, 18 Dec 2015 14:08:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Update of bug #39897 (project findutils):

                  Status:                    None => Need Info              
             Assigned to:                    None => jay                    

    _______________________________________________________

Follow-up Comment #1:

One of the reasons this has not previous been implemented is that the order in
which find examines the file system is only partly defined (i.e. start points
are examined in order, either depth-first or in preorder).   Hence using a
limit of say 100 would provide almost no control over which 100 results are
generated.

A second reason is that there is ambiguity over what a "result" is.  Consider
this for example:

find / -name foo -fprint /tmp/foos  , -name bar -fprint /tmp/bars -max_count
200

What behaviour should one expect?

The -quit predicate suffers a bit from the first problem but not when the
second (since it takes effect as soon as it is reached).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39897>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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