Help
I'm am trying to create a script that checks a log for errors I want it to be nice and simple and this is what I am aiming for can any one help me??
Code:
#!/bin/bash
#Check the log
var1 = grep error test1.log
echo $var1
IF statement
if $var = "" ie empty
print no errors
else
there were errors