Vasyl Vavrychuk wrote:
I would like to have an option to return success if nothing is found but still return fail if error happens.
You can use a shell command like this: grep PATTERN FILE test $? -lt 2 I don't see the need for a special grep option to handle this problem.