I am new to shell scripting,any help will be appreciated!!
I am working on a .sh file I want to check if the values in 3 variables are same ,then do something Here is my code:
#!/bin/sh +x
echo "OID host name= $OID_HOST_NAME"
echo "OIM host name=$OIM_HOST_NAME"
echo "OHS host name=$OHS_HOST_NAME"
echo "Printing done"
if ["$OID_HOST_NAME" == $OIM_HOST_NAME ]&& ["$OIM_HOST_NAME" == $OHS_HOST_NAME ]; then
nodelist=ALL
echo "Inside if $nodelist"
else
echo "Inside else $nodelist"
fi
I am getting syntax error on the if condition. utils/main.sh: line 67: [slc06wmg.us.oracle.com: command not found
I have tried with -eq operator but same error.
Kindly help!!