Hi,
I trying to create a shell script that will create a number of arrays named after list from a text file, and then to populate the new created arrays with the contents of another file that has some associations with the first....
...this bit is not the problem:-
for name in $Adminlist # name is individual admin name
do
Nodes=`cat $Source | grep $name`
set -A $name $Nodes
done
...the problem comes when I try to access elements of the dynamically created arrays...eg.
print ${$name[*]}
...errors with :-
./admins[32]: ${$name[*]}: 0403-011 The specified substitution is not valid for this command.
...I have tried a number of variants on this ( print ${name[*]}, print ${\$name[*]} ) but always get the same error
any help much appreciated
Cheers