title: Bash Storing Variables like within for loops
body: <p>Given the for loop situation,
  Loop1, an integer will be stored in a variable called var1.
  Loop2, another integer will replace the value in var1.
  Above is not what i would like.
  I would like to store the second integer into a new variable called var2.
  This loop will cycle for 30 loops and if i can have var1 to var30 all having different variables, that would be very awesome. thanks</p>
  
  <p>My codes </p>
  
  <pre><code>b=1
  for i in `ls RQ=RECORD\&amp;rank=*.html | sort -V`
  do
  
  
      tallyimpact=$(sed -n 's/.*has an Impact Factor of &lt;strong&gt;\(.*\)&lt;\/strong&gt;.*/\1/ip;T;q' $i) 
      var$b=$tallyimpact
      let "b++"
      blah blah blah
      blah blah blah
  done
  </code></pre>
  
  <p>What i get is </p>
  
  <pre><code>boxplot2.sh: line 22: var1=162.500: command not found
  boxplot2.sh: line 22: var2=54.420: command not found
  boxplot2.sh: line 22: var3=45.661: command not found
  boxplot2.sh: line 22: var4=42.860: command not found
  boxplot2.sh: line 22: var5=42.351: command not found
  boxplot2.sh: line 22: var6=41.392: command not found
  </code></pre>