next up previous contents index
Next: User Interface Setup Commands Up: Control Structures Previous: The cdump Command   Contents   Index


The strcmp Command

The strcmp command is used for string comparison in control structures.

strcmp varname string1 string2
The value of the shell variable varname is set to a number that is greater than, equal to, or less than 0 according to whether string1 is lexically before, equal to, or after string2.



Stephen R. Whiteley 2012-09-24