Adding <bug-findutils@gnu.org>.

On 09/26/2015 04:43 PM, Richard Russon wrote:
> I'd like to add an option to both head and tail,
> to allow them to work with NUL-terminated lines of text
>      -z, --zero-terminated
> 
> Thus allowing:
> 
>      find dir -type f -print0 | head -z -n 10 | xargs -0 command

While this makes sense in head(1) and tail(1), wouldn't it also
make sense in find(1) to define a limit for the number of entries
returned, thus avoiding the 2 pipes at all?

  find dir -type f -limit 10 -exec command '{}' +
___________________^^^^^^^^^

We already have other limiting options like -maxdepth, so a new option
to stop processing after a total number of output entries may be worth
thinking about.

Have a nice day,
Berny

Reply via email to