Hi ,
I am writing a shell script to find the failures ..
I am getting below update in to the variable
var=`grep -i "failed" $FILE`
output : total failed :0
total failed :0
total failed :0
total failed : 0
Here I need the logic like - I need a mail if it results other than 0 in any line..
Can anyone please help me on this ..
I am writing a shell script to find the failures ..
I am getting below update in to the variable
var=`grep -i "failed" $FILE`
output : total failed :0
total failed :0
total failed :0
total failed : 0
Here I need the logic like - I need a mail if it results other than 0 in any line..
Can anyone please help me on this ..