This chapter is about AWK – Operators.
Like other programming languages, AWK also provides a large set of operators. This chapter explains AWK operators with suitable examples.
S.No. | Operators & Description |
---|---|
1 | Arithmetic OperatorsAWK supports the following arithmetic operators. |
2 | Increment and Decrement OperatorsAWK supports the following increment and decrement operators. |
3 | Assignment OperatorsAWK supports the following assignment operators. |
4 | Relational OperatorsAWK supports the following relational operators. |
5 | Logical OperatorsAWK supports the following logical operators. |
6 | Ternary OperatorWe can easily implement a condition expression using ternary operator. |
7 | Unary OperatorsAWK supports the following unary operators. |
8 | Exponential OperatorsThere are two formats of exponential operators. |
9 | String Concatenation OperatorSpace is a string concatenation operator that merges two strings. |
10 | Array Membership OperatorIt is represented by in. It is used while accessing array elements. |
11 | Regular Expression OperatorsThis example explains the two forms of regular expressions operators. |
To know more, Click Here.
Pingback: AWK - Built-in Variables - Adglob Infosystem Pvt Ltd