$ plex="SIMPLEX" $ if [ "$plex" = "SIMPLEX" ] > then > echo y > fi y $ if [ "$plex" = "DU" ] > then > echo y > else > echo n > fi n
All of these do not work:
$ plex="SIMPLEX" $ if (($plex=="SIMPLEX")) > then > echo y > else > echo n > fi y $ if (($plex=="DUP")) then echo t > fi t $ if (($plex="SIMPLEX")) > then > echo y > else > echo n > fi n $ if [["$plex"=="SIMPLEX"]] > then > echo yes > fi ksh: [[SIMPLEX==SIMPLEX]]: not found $ if [$plex="SIMPLEX"] > then > echo yes > fi ksh: [SIMPLEX=SIMPLEX]: not found