Link to home
Start Free TrialLog in
Avatar of saibsk
saibsk

asked on

Korn shell script grep issue

I grepping a log file for the word failure. I want to execute a loop only if there is no "failure" string in the log file.

something like
unless grep "failure"
-------
-------

but there is no unless keyword in shell script. Please advise how would I handle that in Korn shell script.
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial