bugfindutils - Bugs: bug #39897, [RFE] Add "--max-count"...


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

Submitted by:  None
Submitted on:  Fri 30 Aug 2013 09:40:45 AM UTC  
Category:  find Severity:  1 - Wish
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  None
Fixed Release:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 18 Dec 2015 02:08:23 PM UTC, 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).

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 30 Aug 2013 09:40:45 AM UTC, original submission:  

It could be useful if find had a --max-count parameter to specify the number of results (as in grep's)



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-18 jay StatusNone => Need Info
        Assigned toNone => jay
    2013-09-25 jay Severity3 - Normal => 1 - Wish

    Back to the top

    Powered by Savane 3.5