home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 11.4 Awk System Variables Chapter 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.

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.


Previous: 11.4 Awk System Variables UNIX in a Nutshell: System V Edition Next: 11.6 Variables and Array Assignments
11.4 Awk System Variables Book Index 11.6 Variables and Array Assignments

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