Everything you describe is just
screaming for arrays.
Arrays are one of the most useful, and least used, features of the modern shell. So take some time to learn how to use them. Seriously. They're very simple really, just a linked list of variables, all with the same name, but with individual index numbers to differentiate the individual entries.
Basically, instead of RC1, RC2, etc. you use RC[1],RC[2], etc. (actually the count is zero-based, so you'd generally be starting with [0]).
http://mywiki.wooledge.org/BashGuide/Arrays
Your loop above could be written like this, for example (also using a c-style for loop for counting instead):
Code:
for (( i=1;i<=8;i++ )); do #Loops through the numbers 1-8
R[i]="" #sets the R array element with the value of $i to empty
RC[i]="0" #sets the RC array element with the value of $i to 0
echo "The value of RC[$i] is ${RC[i]}" #echo back the current array element
done
echo "${RC[@]}" #to list all entries at once.
I highly suggest you read the whole BashGuide, from the link I gave. It gives good, clear explanations of all the fundamental concepts you should understand for bash scripting.
As Telengard also pointed out, there are other techniques for indirect variable use, but they are generally unnecessary when you have arrays available.
http://mywiki.wooledge.org/BashFAQ/006