It turns out that Awk does support [local variables](https://www.gnu.org/software/gawk/manual/html_node/Variable-Scope.html), so the Awk samples need to be modified to use this instead of polluting the global variable space.
It turns out that Awk does support local variables, so the Awk samples need to be modified to use this instead of polluting the global variable space.