I am writing a Bash script that will either clone a database or setup a standby database. So Parameter 2 will be the operation type. If the value is not clone or standby I want to throw an error message. I suppose I can also do a case block. So far i have been unable to get the syntax working properly. Here is what I have, any help would be appreciated.
Thanks,
Brian
By the way, the script would run under any one of the following systems, Solaris 8, 10, or Redhat 2.6.
if [ $OPERATIONTYPE != "clone" && $OPERATIONTYPE != "standby"] ; then