I am trying to use a variable as an operator inside an if test.
if [[ $action = "active" ]];then operator="-le" fi if [[ $Apps $operator 100 ]];then echo "No of apps $Apps" fi I am getting syntax error near `
I am trying to use a variable as an operator inside an if test.
if [[ $action = "active" ]];then operator="-le" fi if [[ $Apps $operator 100 ]];then echo "No of apps $Apps" fi I am getting syntax error near `