Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (k - l) ksh(1)
string != pattern
TRUE,ifstring does not match pattern.
string1 < string2
TRUE,ifstring1 collates before string2.
string1 > string2
TRUE,ifstring1 collates after string2.
expression1 -eq expression2
TRUE,ifexpression1 is equal to expression2.
expression1 -ne expression2
TRUE,ifexpression1 is not equal to expression2.
expression1 -lt expression2
TRUE,ifexpression1 is less than expression2.
expression1 -gt expression2
TRUE,ifexpression1 is greater than expression2.
expression1 -le expression2
TRUE,ifexpression1 is less than or equal to expression2.
expression1 -ge expression2
TRUE,ifexpression1 is greater than or equal to expression2.
A compound expression can be constructed from these primitives by using any of the following,
listed in decreasing order of precedence.
(expression)
TRUE,ifexpression is TRUE. Used to group expressions.
! expression
TRUE if expression is FALSE.
expression1 && expression2
TRUE,ifexpression1 and expression2 are both TRUE.
expression1 || expression2
TRUE, if either expression1 or expression2 is TRUE.
Input/Output
Before a command is executed, you can redirect its input and output by using a special notation
interpreted by the shell. The following can appear anywhere in a simple command or can pre-
cede or follow a command and are not passed on to the invoked command. Command and
parameter substitution occurs before word or digit is used, except as noted in the following text.
Filename generation occurs only if the pattern matches a single le and interpretation of spaces
is not performed.
<word Use le word as standard input (le descriptor 0).
>word Use le word as standard output (le descriptor 1). If the le does not exist, it is
created. If the le exists, and the noclobber option is on, this causes an error; other-
wise, it is truncated to 0 (zero) length.
527188-007 Hewlett-Packard Company 519