I need an IF statement that will compare the contents of the variable CX with the actual string "CP". ie. If the contents of $CX are NOT equal to the actual string "CP" then blah blah blah.
I have tried a number of things including the following.......
if [[ $CX != `echo CP` ]]; then
if [[ $CX != "CP" ]]; then
if [[ $CX != CP ]]; then
none of which seem to work
any suggestions ?
I have tried a number of things including the following.......
if [[ $CX != `echo CP` ]]; then
if [[ $CX != "CP" ]]; then
if [[ $CX != CP ]]; then
none of which seem to work
any suggestions ?