title: Bash for loop with unique var names issue
body: <p>I am using a bash for loop to cycle through a directory and print the file size. My issue though is that I need to assign a unique variable to each of the values so that they can be used later but the array is inputting all the data as one element in the array. I have tried both a double for loop and a if statement with a nested for loop but did not get the right results.
  Question: How can I fix the below code to match my needs or is there a better method?</p>
  <pre><code>declare -a byte
  for b in /home/usr/frames/*
  do
    byte+=$(wc -c &lt; $b)
  done 
  declare -p byte
  </code></pre>