From 1018faa44805df770d4b9332c46c7527ff522b8a Mon Sep 17 00:00:00 2001 From: tomit4 Date: Wed, 4 May 2022 19:04:43 -0700 Subject: [PATCH] added table 4.5 on awk built-in functions from unix programming interface book --- awk_built_in_functions.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 awk_built_in_functions.txt diff --git a/awk_built_in_functions.txt b/awk_built_in_functions.txt new file mode 100644 index 00000000..c2d71003 --- /dev/null +++ b/awk_built_in_functions.txt @@ -0,0 +1,14 @@ +--------------------- Table 4.5 --------------------- + awk Built-in Functions + +cos(expr) cosine of expr +exp(expr) exponential of expr: e^expr +getline() reads next input line; returns 0 if end of file, 1 if not +index(s1,s2) position of string s2 or s1; returns 0 if not present +int(expr) integer part of expr; truncates towards 0 +length(s) length of string s +log(expr) natural logarithm of expr +sin(expr) sine of expr +split(s,a,c) split s into a[1]...a[n] on character c; return n +sprintf(fmt,...) format ... according to specification fmt +substr(s,m,n) n-character substring of s beginning at position m