I am trying to print a simple value for $AR1_p1
but the variable $i
is not evaluating.
for i in 1 2 3 4
do
AR1_p1=22
AR1_p2=23
AR1_p3=24
AR1_p3=25
echo $AR1_p$i
done
It's like concatenating dynamically. Any suggestions on how to fix this?.