Greetings!
In shell (bash), I'm trying to interpolate a variable into part of another variable's name. I don't know if that made any sense, but here's what I'm doing:
Code:
#!/bin/sh
r1=35; r2=32; r3=36
for i in $(seq 3)
do
echo ${r$i}
done
I'm looking for the output to be the values of $r1, $r2, and $r3. Is this possible?
Thanks for any help!