O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Operators

The following table lists the operators, in order of increasing precedence, that are available in gawk.

Symbol

Meaning

= += -= *= /= %= ^= **=

Assignment

?:

C style conditional (expression ? if-true-action : if-false-action)

||

Logical OR

&&

Logical AND

in

Array membership (see for command)

~ !~

Match regular expression and negation

< <= > >= != == >> | | &

Relational and redirection 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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required