title: Use array variable in awk?
body: <pre><code>A=(aaa bbb ccc)    
  cat abc.txt | awk '{ print $1, ${A[$1]} }'
  </code></pre>
  
  <p>I want to index an array element based on the $1, but the code above is not correct in awk syntax. Could someone help?</p>