Download git/usr/share/awk/processarray.awk from codekingpro/portable-devtools: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/2b8ec629f385bf628752c6071a1e7ece3d8eb90a/git/usr/share/awk/processarray.awk
- Command line
-
hf download hf://datasets/codekingpro/portable-devtools@2b8ec629f385bf628752c6071a1e7ece3d8eb90a/git/usr/share/awk/processarray.awk
-
curl -L -o processarray.awk https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/2b8ec629f385bf628752c6071a1e7ece3d8eb90a/git/usr/share/awk/processarray.awk
503 Bytes
| # This file and how to use it are described in the manual. | |
| # Therefore, we respectfully advise you to Read The Fine Manual | |
| # for more information. | |
| function process_array(arr, name, process, do_arrays, i, new_name) | |
| { | |
| for (i in arr) { | |
| new_name = (name "[" i "]") | |
| if (isarray(arr[i])) { | |
| if (do_arrays) | |
| @process(new_name, arr[i]) | |
| process_array(arr[i], new_name, process, do_arrays) | |
| } else | |
| @process(new_name, arr[i]) | |
| } | |
| } | |