[X-Unix] find's -quit

Eric F Crist ecrist at secure-computing.net
Sun Jun 3 08:13:51 PDT 2007


On Jun 3, 2007, at 2:30 AMJun 3, 2007, Filipp Lepalaan wrote:

> Hi gang,
>
> Just a quick question that kinda stumped me. How do you limit  
> find's search results to just the first result?
> GNU find has -quit (http://unixhelp.ed.ac.uk/CGI/man-cgi?find) but  
> I can't seem to find any equivalent on OS X.
>
> This is for performance reasons so head is not an option.
>
>
> Many TIA,
> -filipp
>

If you can give me a specific example of what you're searching for  
and in what context, I can probably foo some sort of script together  
that will do what you need.  Just a matter of piping the right things  
together...

-----
Eric F Crist
Secure Computing Networks




More information about the X-Unix mailing list