Dan Jacobson <jida...@jidanni.org> 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