made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
9
gitportable/usr/share/awk/walkarray.awk
Normal file
9
gitportable/usr/share/awk/walkarray.awk
Normal file
@@ -0,0 +1,9 @@
|
||||
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])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user