MPE/iX Shell and Utilities Reference Manual, Vol 2

sh(1) MPE/iX Shell and Utilities sh(1)
Summary of Operators
Unary Operators
unary minus
! logical negation
identity, bitwise negation
Multiplicative Operators
*/% multiplication, division, remainder
Additive Operators
+– addition, subtraction
Bitwise Shift Operators
<< >> bitwise shift right, bitwise shift left
Relational Operators
<> less than, greater than
<= >= less than or equal, greater than or equal
== != equal to, not equal to
Bitwise And Operator
& and
Bitwise Exclusive Or Operator
ˆ exclusive or
Bitwise Inclusive Or Operator
| inclusive or
Logical And Operator
&& logical and
Logical Or Operator
|| logical or
Conditional Operator
?: if-else
Assignment Operator
=*=/=%= assignment
+= -= <<=
>>= &= ˆ= |=
Table 1-11: Shell Operators
Command Substitution
In command substitution, sh uses the expansion of the standard output of one command in the
command line for a second command. There are two syntaxes.
The first syntax (called backquoting) surrounds a command with grave accents `,asin
ls -l `cat list`
1-534 Commands and Utilities