Problem looks like this:
awk ' BEGIN {
getline c < "-"
getline b < "-"
getline e < "-"
I would really love to be able to do something like this:
my_arr[x,y,z] = c b e
but I don't think this can be done.
so I settle for something like this:
name[1] = c
name[2] = b
name[3] = e
when I loop through them:
for (x in name) {
print name[x]
}
I get a random single element.
Could somebody explain this behavior to me
and how I can avoid it?
gawk version 3.0.98
Thanks for any help.
awk ' BEGIN {
getline c < "-"
getline b < "-"
getline e < "-"
I would really love to be able to do something like this:
my_arr[x,y,z] = c b e
but I don't think this can be done.
so I settle for something like this:
name[1] = c
name[2] = b
name[3] = e
when I loop through them:
for (x in name) {
print name[x]
}
I get a random single element.
Could somebody explain this behavior to me
and how I can avoid it?
gawk version 3.0.98
Thanks for any help.