title: No such file or directory on bash assignment
body: <p>I'm trying to write an script that saves each line from "test" file in a variable line1, line2, and so on..</p>
  
  <pre><code>x=$(cat test | wc -l)   #here i have how many lines
  i="1"
  
  while [ "$i" -lt "$x" ]
  do
  line$i=$(sed '$iq;d' test)   #i try to get the number $i line one by one
  i=$[$i+1]                              
  done
  </code></pre>
  
  <p>Could you please help me?</p>
  
  <p>Thanks!</p>