I want to use the values of one array to point to values in another, but I can't figure it out. I think this is very basic. I'd like the file to yield one line associated with each of x, y, z as follows: x XValue, y Yvalue, Z Zvalue but I just get the first line.#! /bin/bashdeclare -a iddeclare -A headerid=( x y z )header[x]=X Valueheader[y]=Y Valueheader[z]=Z Valuefor ident in $iddo    echo $ident ${header[${ident}]}done
Iterate over bash array
bash;shell script