Download git/usr/share/awk/walkarray.awk from codekingpro/portable-devtools: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/fcdae605e7788a2c9520bc1f03ba7c0eebd95077/git/usr/share/awk/walkarray.awk
- Command line
-
hf download hf://datasets/codekingpro/portable-devtools@fcdae605e7788a2c9520bc1f03ba7c0eebd95077/git/usr/share/awk/walkarray.awk
-
curl -L -o walkarray.awk https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/fcdae605e7788a2c9520bc1f03ba7c0eebd95077/git/usr/share/awk/walkarray.awk
362 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 walk_array(arr, name, i) | |
| { | |
| for (i in arr) { | |
| if (isarray(arr[i])) | |
| walk_array(arr[i], (name "[" i "]")) | |
| else | |
| printf("%s[%s] = %s\n", name, i, arr[i]) | |
| } | |
| } | |