title: BASH: trying to read in file but it only gets the first line
body: <p>Im trying to read in a file in bash and store the variables to be used at some later point, the format for the files is as follows</p>
  
  <p>name abbreviation</p>
  
  <p>price quantity maxQuantitiy</p>
  
  <p>itemDescription</p>
  
  <p>but when i try to  actually read in the file it seems ot only store the first line in every variable and was wondering where it is that its storing the variables wrong</p>
  
  <pre><code>if [ -r data/$fileName.file ]; then
      read name abbreviation &lt; data/$fileName.file
      read price quantity maxQuantity &lt; data/$fileName.file
      read itemDescription &lt; data/$fileName.file
  fi
  </code></pre>
  
  <p>and when i try to echo the price or quantity it echos the name and the abbreviation.</p>