I am trying to use 'or' condition within 'if' statement in shell script (Bash/Solaris). I am trying below, but it is giving Syntax error.
What mistake I am doing?
if [ grep "$logtime" $blogs | grep "Authentication Failed" ] -o [ grep "$logtime" $slogs | egrep "AAA Authentication Failure|AAA Authorization Failure" ] > dptest 2>&1;then
set of commands.
fi
Regards, Rahul