title: How to put a line from a file into a table (variable)
body: <p>I have the following file</p>
  
  <pre><code>Durand 12 9 14
  Lucas 8 11 4
  Martin 9 12 1
  </code></pre>
  
  <p>I need to display the name and the average of the three other with a function. The function part is easy.</p>
  
  <p>I thought I could get line by line with:</p>
  
  <pre><code>head -i notes | tail -1
  </code></pre>
  
  <p>and then put the result of the command in a table in order to access it </p>
  
  <pre class="lang-py prettyprint-override"><code>table=(head -i notes | tail -1)
  echo "${table[0]} averge : moy ${table[1]} ${table[2]} ${table[3]}"
  </code></pre>