13.5. Operators
The following table lists the operators, in order of increasing precedence,
that are available in gawk.
| Symbol |
Meaning
|
|
= += -= *= /= %= ^= **= |
Assignment |
|
?: |
C conditional expression |
|
|| |
Logical OR |
|
&& |
Logical AND |
|
~ !~ |
Match regular expression and negation |
|
< <= > >= != == |
Relational operators |
|
(blank) |
Concatenation |
|
+ - |
Addition, subtraction |
|
* / % |
Multiplication, division, and modulus |
|
+ - ! |
Unary plus and minus and logical negation |
|
^ ** |
Exponentiation |
|
++ -- |
Increment and decrement, either prefix or postfix |
|
$ |
Field reference |
|
in |
Array membership (see
for command) |
 |  |  | | 13.4. gawk System Variables |  | 13.6. Variable and Array Assignments |
Copyright © 2001 O'Reilly & Associates. All rights reserved.
|
|