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

 
 

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

Submitter:  None
Submitted:  Fri 30 Aug 2013 09:40:45 AM UTC
   
 
Category:  find Severity:  1 - Wish
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  jay
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  None
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-4448.
    Corresponding source code