myVAR='myArr' . ./myArraysFile # external file with all my arrays, one of the arrays is myArr=('one' 'two' 'three') I need to use this arrey with further scripting
Examples:
echo ${!myVAR}[1] # I want it to print 'two' or
for here in 'place.one' 'place.two';do ssh ${!myVAR}[7]@$here done and so one