[Top][All Lists]

[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

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

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:


  Message sent via/by Savannah

reply via email to

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