Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Shell Script

$
0
0
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 ..

Viewing all articles
Browse latest Browse all 13329

Trending Articles