I am trying to accomplish something like this :
index=([0]=INDEX1 INDEX2 INDEX3 )
echo INDEX1 will print 0
echo INDEX2 will print 1
echo INDEX3 will print 2
is it possible to accomplish something like this ? or , like this :
echo ${!index[INDEX1]} # print 0