I don't understand how you can write more that one line long program in a language where all variables are global by default even if they are inside a scope delimited by brackets. You can have local variables but the syntax is weird. https://www.gnu.org/software/gawk/manual/html_node/Variable-...