[Top][All Lists]

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

[bug #54730] Add additional valuable example of find -quit

Subject: [bug #54730] Add additional valuable example of find -quit
Date: Wed, 26 Sep 2018 04:29:31 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36

Follow-up Comment #2, bug #54730 (project findutils):

Yes there should be many examples added.

The syntax error was on purpose.

The idea is: use -quit as an emergency brake while perfecting one's find
recipe. Let's say of every five adjustments one is a syntax error.
In that case one would want it to quit out right away, with no need to
repeat the same syntax error on every file in the tree.
So that is a good example to use. Though perhaps use python instead of
perl, etc.

Your "For each file in '/dev', run stat(1)" is good, except I am afraid
that the whole thing could be done just using find itself, so perhaps
use a test that find couldn't already do.

As far as the
find: '1': No such file or directory
find: '2': No such file or directory
example, maybe you can make one where
we are not banging around and causing error messages.


Reply to this item at:


  Message sent via Savannah

reply via email to

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