title: awk: any way to access the matched groups in action?
body: <p>I often find myself doing the same match in the action as the pattern, to access some part of the input record, e.g. </p>
  
  <pre><code>/^Compiled from \"(.*)\"$/ {
      file_name = gensub("^Compiled from \"(.*)\"$", "\\1", "g");
      print file_name;
  }
  </code></pre>
  
  <p>So the regexp matching is done twice. Is there any way I can access <code>\\1</code> in the action without matching again? </p>
  
  <p>I am trying to both reduce on pattert matching and extra code.</p>