[Toybox] find -quit

Frank Liu gfrankliu at gmail.com
Sat May 29 14:30:02 PDT 2021


Just tried it and it seems to work fine. Thanks!

$ ~/workspace/github/toybox/toybox find . -type f -newer ~/z.sh -print
-execdir file  {} \; -quit
./.dbus/session-bus/eea5ecbf79280e5b3e48728e59163532-20
eea5ecbf79280e5b3e48728e59163532-20: ASCII text
$

Use the GNU find:
$ find . -type f -newer ~/z.sh -print -execdir file  {} \; -quit
./.dbus/session-bus/eea5ecbf79280e5b3e48728e59163532-20
./eea5ecbf79280e5b3e48728e59163532-20: ASCII text
$


Frank




On Wed, May 26, 2021 at 3:16 AM Rob Landley <rob at landley.net> wrote:

> On 5/25/21 12:19 PM, Frank Liu wrote:
> > Hi,
> > I got an error when running a script today, it turns out using find
> -quit option
> > that toybox doesn't have.
> > eg: find / -type f -newer /tmp/mark -print -quit
> >
> > Is this something you would consider adding?
>
> https://github.com/landley/toybox/commit/e3062c3bd366
>
> Haven't tested the "flush pending -execdir" stuff yet, but I think I added
> the
> right flush call?
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210529/e24c0150/attachment-0001.htm>


More information about the Toybox mailing list