AWK – Miscellaneous Functions
This topic is about AWK - Miscellaneous Functions. AWK has the following miscellaneous functions − close(expr) This function closes file of pipe.. Example [jerry]$ awk 'BEGIN { cmd = "tr…
This topic is about AWK - Miscellaneous Functions. AWK has the following miscellaneous functions − close(expr) This function closes file of pipe.. Example [jerry]$ awk 'BEGIN { cmd = "tr…
This topic is about AWK - Bit Manipulation Functions. AWK has the following built-in bit manipulation functions − and Performs bitwise AND operation. Example [jerry]$ awk 'BEGIN { num1 =…
This topic is about AWK - Time Functions. AWK has the following built-in time functions − systime This function returns the current time of the day as the number of…
This topic is about AWK - String Functions. AWK has the following built-in String functions − asort(arr [, d [, how] ]) This function sorts the contents of arr using GAWK's normal…
This topic is about AWK - Arithmetic Functions. AWK has the following built-in arithmetic functions − atan2(y, x) It returns the arctangent of (y/x) in radians. The following example demonstrates…
This topic is about AWK - Pretty Printing. So far we have used AWK's print and printf functions to display data on standard output. But printf is much more powerful than what we have…
This topic is about AWK - Output Redirection. So far, we displayed data on standard output stream. We can also redirect data to a file. A redirection appears after the print or printf statement.…
This topic is about AWK - User Defined Functions. Functions are basic building blocks of a program. AWK allows us to define our own functions. A large program can be…
This topic is about AWK - Built-in Functions. AWK has a number of functions built into it that are always available to the programmer. This chapter describes Arithmetic, String, Time,…
This topic is about AWK - Loops. This chapter explains AWK's loops with suitable example. Loops are used to execute a set of actions in a repeated manner. The loop…