Lines Matching defs:awk
0 /* awk.c - An awk implementation.
6 * See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html
8 USE_AWK(NEWTOY(awk, "F:v*f*bc", TOYFLAG_USR|TOYFLAG_BIN))
11 bool "awk"
14 usage: awk [-F sepstring] [-v assignment]... program [argument...]
16 awk [-F sepstring] -f progfile [-f progfile]... [-v assignment]...
75 // zvalue: the main awk value type
882 // but awk does, so do them.
928 // pass \ unmolested if not awk escape,
1616 // ray@radon:~$ awk 'BEGIN { $0 = "7 9 5 8"; k=2; print $k*k }'
1618 // ray@radon:~$ awk 'BEGIN { $0 = "7 9 5 8"; k=2; print $+k*k }'
1620 // ray@radon:~$ awk 'BEGIN { $0 = "7 9 5 8"; k=2; print $k^k }'
1622 // ray@radon:~$ awk 'BEGIN { $0 = "7 9 5 8"; k=2; print $+k^k }'
1700 // NOTE: fflush() is NOT in POSIX awk
1779 // getline may be (according to awk book):
1914 // awk does not parse according to POSIX spec in some odd cases.
2124 optional_nl(); // NOT posix or awk book; in OTA
2129 optional_nl(); // NOT posix or awk book; in OTA
2280 // and as the name of a function or a special awk variable.
2671 #define FIELDS_MAX 102400 // Was 1024; need more for toybox awk test
2876 // Contrary to posix, awk evaluates TT.fields beyond $NF as empty strings.
3444 // as with gawk, goawk, and recent bwk awk (nawk) versions. Undefine GAWK_SUB
4359 // Global variables reside at the bottom of the TT.stack. Start with the awk
4390 // Init rest of the awk special variables.
4505 static int awk(char *sepstring, char *progstring, struct arg_list *prog_args,
4539 toys.exitval = awk(sepstring, progstring, TT.f, TT.v,