bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find -die. -exec-die-upon-error


From: Dale R. Worley
Subject: Re: find -die. -exec-die-upon-error
Date: Thu, 12 May 2016 21:29:19 -0400

Dan Jacobson <address@hidden> writes:
> Or perhaps -exec ... -o -die
>
> How could find live without a -die action?

How about "-quit", which seems to be implemented in find 4.5.11?

       -quit  Exit immediately.  No child processes will be left running,  but
              no  more  paths specified on the command line will be processed.
              For example, find /tmp/foo /tmp/bar -print -quit will print only
              /tmp/foo.   Any  command  lines  which  have  been built up with
              -execdir ... {} + will be invoked before find exits.   The  exit
              status may or may not be zero, depending on whether an error has
              already occurred.

Dale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]