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


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

Submitted by:  None
Submitted on:  Fri Aug 30 09:40:45 2013  
Category: findSeverity: 1 - Wish
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: None
Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Fri Dec 18 14:08:23 2015, 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 Aug 30 09:40:45 2013, 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Dec 18 14:08:23 2015jayStatusNone=>Need Info
      Assigned toNone=>jay
    Wed Sep 25 21:01:00 2013jaySeverity3 - Normal=>1 - Wish

    Back to the top

    Powered by Savane 3.1-cleanup1