atan2(x,y)
| arctangent of x/y in radians
|
cos(expr)
| cosine of expr
|
exp(expr)
| exponential of expr
|
gsub(regular-expression, string1, string2)
| substitute string1 for all instances of regular-expression in string2. If string2 is not specified, use the current record $0.
|
index(string1, string2)
| return the position of string1 in string2
|
int(expr)
| integer value of expr
|
length(string)
| return the length of string
|
log(expr)
| natural logarithm of expr
|
match(string, regular-expression)
| return the position in string where regular-expression occurs. If not found, return 0. RSTART is set to starting position, and RLENGTH is set to the length of string.
|
rand()
| random number between 0 and 1
|
sin(expr)
| sine of expr in radians
|
split(string, array)
| split string into array using $FS
|
split(string, array, fs)
| split string into array using fs as separator
|
sprintf(format, expr)
| format expr according to the printf format
|
sqrt(expr)
| square root of expr
|
srand()
| new seed for rand (current time)
|
srand(expr)
| set the seed for rand to expr
|
sub(regular-expression, string1, string2)
| substitute string1 for the first instance of regular-expression in string2. If string2 not specified, use the current record $0.
|
substr(string, x)
| return the suffix of string starting at position x
|
substr(string, x, n)
| return n character substring of string starting at position x
|
function name(args,...) {statements}
|
func name(args,...) {statements} name (expr, expr, . . .)
| define a function name
|