bug-findutils
[Top][All Lists]
Advanced

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

Re: proposal: find -quit


From: James Youngman
Subject: Re: proposal: find -quit
Date: Sat, 14 Jun 2003 13:29:01 +0100
User-agent: Mutt/1.3.28i

On Sat, Jun 14, 2003 at 11:47:49AM +0800, Dan Jacobson wrote:
> Gentlemen, I hereby propose you adding a -quit switch to find.     
> $ find tree -newer timestamp -exec sound_the_alarm \; -quit
> The alarm only needs to be sounded once, as soon as we find something has
> changed.  We want to stop then and there, no need to go on thru the tree.

While sound_the_alarm could kill its parent and hence achieve the
desired result, this is not particularly neat.  Are there any thoughts
from other list members about the usefulness of such a feature?





reply via email to

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