Quote:
Originally posted by cricbk
My ultimate goal is to put this command in a script file and
when the '-exec gcc {}' returns an error I want the script to stop,
not continue on to the next file that is found.
|
That's not possible, find doesn't accept the result
from exec as a control mechanism. You may have
to go another way, like bash or perl scripting.
Cheers,
Tink