The awk programming language provides a series of *operators* that allow [[value?]]s and variables to be compared, evaluated or manipulated. These operators can combined together with [[value?]]s and variables to make [[expression?]]s. The operators may take [[unary?]], [[dyadic?]] or [[ternary?]] form, depending on the number of [[operand?]]s that they utilize.
As within most other programming languages, the '''equals sign''' acts as a [[dyadic?]] operator, assigning the value of the [[expression?]] of the right hand [[operand?]] to the variable named by the left [[operand?]].
The awk programming language provides a standard set of arithmetic operators for manipulating [[integer?]] and [[floating_point?]] numbers.
The logical operators are used to perform [[boolean?]] operations, returning either [[true?]] or [[false?]].
number sign operators
regular expression operators
compound assignment operators
Operators not supported in awk
The awk programming language does not support the following operator types:
- bitwise operators are not supported by traditional awk implementations, but equivalent functions are available as gawkisms
- concatenation operators
- exponent operator is not supported by traditional awk implementations, but is available as a gawkism
- [[repetition?]] operator