Search⌘ K

AWK built-in functions

Explore AWK's built-in functions to understand how to perform mathematical operations, manipulate strings, execute system commands, and manage data effectively in text processing using AWK.

We'll cover the following...

AWK has the mathematical functions like exp, log, sqrt, sin, cos, atan2, etc. built-in, other built-in functions are:

  • length the length of its argument taken as a string, or of$0 if no argument.
  • rand random number between 0 and 1
  • srand sets seed for rand and returns the previous seed.
...