![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| If Statement Problem.. | LinuxRacr | Shell Programming and Scripting | 2 | 02-26-2008 08:47 PM |
| problem with if statement equality | cleansing_flame | Shell Programming and Scripting | 1 | 02-12-2008 06:57 AM |
| Case statement problem | gzs553 | UNIX for Advanced & Expert Users | 6 | 11-14-2006 12:24 PM |
| if statement problem | djt0506 | UNIX for Dummies Questions & Answers | 4 | 12-04-2005 04:16 PM |
| if statement problem | coughlin74 | UNIX for Dummies Questions & Answers | 1 | 09-27-2001 01:31 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
problem with an IF statement
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 ? |
| Forum Sponsor | ||
|
|