title: store awk output in variable
body: <p>I ignore what is the problem with this code ?</p>
  
  <pre class="lang-html prettyprint-override"><code>#! /bin/bash
  File1=$1
  for (( j=1; j&lt;=3; j++ ))
  {
      output=$(`awk -F; 'NR=='$j'{print $3}' "${File1}"`)
      echo ${output}
  }
  </code></pre>
  
  
  
  <p>File1 looks like this :</p>
  
  <pre class="lang-html prettyprint-override"><code>Char1;2;3;89
  char2;9;6;66
  char5;3;77;8
  </code></pre>
  
  
  
  <p>I want to extract on every line looped the field 3 </p>
  
  <p>so the result will be </p>
  
  <pre class="lang-html prettyprint-override"><code>3
  6
  7
  </code></pre>