I just need to create an incremental var name inside a loop. The variable must use "in the var name the number of the cycle".
Example inside a loop:
# on Cycle=1 MyVar$Cycle=Exec$Cycle # (equal to MyVar1=Exec1) # on Cycle=2 MyVar$Cycle=Exec$Cycle # (equal to MyVar2=Exec2) # etc...
So how can I correctly set the var name?
In batching works easely:
set MyVar%Cycle%=Exec%Cycle% ...
But I don't know how to make it happen in Bash.
Of course tying like this
MyVar$Cycle=Exec$Cycle do not work.
Just need to be able to set that incremental varname so I can give to them the values i may need time by time. For me, the script is working all good but the set of a new var name in real time don't.