I have NSH script wich will trigger a batch job in target server and that will generate a log file. How to read that log file for "failed" key word and make NSH job to fail based on that.
Thanks in advance.
if grep -q "failed" /path/to/logfile
Retrieving data ...