when I perform
find /tmp -name something
find command not find the something word under /tmp
echo $?
I get $?=0
it's OK
but how to enable Exit status diff then 0 when find command not find the something word?
|
when I perform
find command not find the something word under /tmp
it's OK but how to enable Exit status diff then 0 when find command not find the something word?
| ||||
feedback
|
|
It's more likely, however, that you want to do something with the filenames. You can process them in a loop:
or
If nothing is found then the loop will exit without doing anything. | |||
|
feedback
|