July 2009
a1=one a2=two a3=three for ((i=1; i<=3; i++)); do eval echo "value of a${i} = \${a${i}}" # or eval echo "value of a$i = \$a$i" done