Sample Header Ad - 728x90

bash :: use imported array

0 votes
1 answer
198 views
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} # I want it to print 'two' or for here in 'place.one' 'place.two';do ssh ${!myVAR}@$here done and so one
Asked by eswues (3 rep)
Feb 11, 2022, 03:58 PM
Last activity: Feb 11, 2022, 06:39 PM