I have a running variable, let's say it value is INDEX = 1122 for the current iteration. I have exported:
export PRO"$INDEX"=/some/fancy/dirry
Now I want to reference to this variable, but if I do:
echo $"PRO$INDEX"
I get:
PRO1122
Instead I would like to see:
/some/fancy/dirry
Much like the result of echo $PRO1122.
However, I cannot of course hard code the value 1122 in the loop.