title: setting a bash variable in awk
body: <p>I have</p>
  
  <pre><code>grep 5980 list.txt &gt; temp; awk '{ print $4}' temp
  </code></pre>
  
  <p>but instead of just printing the results I would like to set it to an environment variable.</p>
  
  <p>I'm kind of new to bash and awk so an explanation would also be much appreciated. </p>