title: awk without printing newline
body: <p>I want the variable sum/NR to be printed side-by-side in each iteration. How do we avoid awk from printing newline in each iteration ? In my code a newline is printed by default in each iteration</p>
  
  <pre><code>for file in cg_c ep_c is_c tau xhpl
  printf "\n $file" &gt;&gt; to-plot.xls
      for f in 2.54 1.60 800 
          awk '{sum+=$3}; END  {print  sum/NR}' ${file}_${f}_v1.xls &gt;&gt; to-plot-p.xls
      done
  done
  </code></pre>
  
  <p>I want the output to appear like this</p>
  
  <pre><code>cg_c ans1  ans2  ans3  
  ep_c ans1  ans2  ans3 
  is_c ans1  ans2  ans3
  tau  ans1  ans2  ans3 
  xhpl ans1  ans2  ans3
  </code></pre>
  
  <p>my current out put is like this</p>
  
  <pre><code>**cg_c**
  ans1
  ans2
  ans3
  **ep_c**
  ans1
  ans2
  ans3
  **is_c**
  ans1
  ans2
  ans3
  **tau**
  ans1
  ans2
  ans3
  **xhpl**
  ans1
  ans2
  ans3
  </code></pre>