DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gawk.info) Operator Summary

Info Catalog (gawk.info) Actions Summary (gawk.info) Actions Summary (gawk.info) Control Flow Summary
 
 Operators
 ---------
 
    The operators in `awk', in order of decreasing precedence, are:
 
 `(...)'
      Grouping.
 
 `$'
      Field reference.
 
 `++ --'
      Increment and decrement, both prefix and postfix.
 
 `^'
      Exponentiation (`**' may also be used, and `**=' for the assignment
      operator, but they are not specified in the POSIX standard).
 
 `+ - !'
      Unary plus, unary minus, and logical negation.
 
 `* / %'
      Multiplication, division, and modulus.
 
 `+ -'
      Addition and subtraction.
 
 `SPACE'
      String concatenation.
 
 `< <= > >= != =='
      The usual relational operators.
 
 `~ !~'
      Regular expression match, negated match.
 
 `in'
      Array membership.
 
 `&&'
      Logical "and".
 
 `||'
      Logical "or".
 
 `?:'
      A conditional expression.  This has the form `EXPR1 ?  EXPR2 :
      EXPR3'.  If EXPR1 is true, the value of the expression is EXPR2;
      otherwise it is EXPR3.  Only one of EXPR2 and EXPR3 is evaluated.
 
 `= += -= *= /= %= ^='
      Assignment.  Both absolute assignment (`VAR=VALUE') and operator
      assignment (the other forms) are supported.
 
     Expressions.
 
Info Catalog (gawk.info) Actions Summary (gawk.info) Actions Summary (gawk.info) Control Flow Summary
automatically generated byinfo2html