The table below lists the operators, in order of increasing precedence, that are available in awk.
| Symbol | Meaning |
|---|---|
| = =+ -= *= /= %= ^= | Assignment. |
| ?: | C conditional expression (nawk and gawk). |
| || | 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. |
| This HTML Help has been published using the chm2web software. |