title: How to print variable inside awk
body: <p>I want the awk to interpret the variable as follows</p>
  
  <pre><code>#!/bin/bash
  
  file=tau
  f=2.54
  order=even
  
  awk '{sum+=$2}; END {print '${file}_${f}_${order}_v1.xls', sum/NR}'
  ${file}_${f}_${order}_v1.xls &gt;&gt; safe/P-state-summary.xls
  </code></pre>
  
  <p>I want the desired output as follows -</p>
  
  <pre><code>tau_2.54_even_v1.xls   sum/NR
  </code></pre>
  
  <p>Can anybody help me out with this ?</p>