UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 11.4 Awk System VariablesChapter 11
The Awk Scripting Language
Next: 11.6 Variables and Array Assignments
 

11.5 Operators

The table below lists the operators, in order of increasing precedence, that are available in awk.

SymbolMeaning
= =+ -= *= /= %= ^=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.


Previous: 11.4 Awk System VariablesUNIX in a Nutshell: System V EditionNext: 11.6 Variables and Array Assignments
11.4 Awk System VariablesBook Index11.6 Variables and Array Assignments

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System