title: in place editing using awk
body: <p>I want to add a line at top of file say <code>f1</code> using awk.<br>
  Is there a better way than the following?</p>
  
  <pre><code>awk 'BEGIN{print "word"};{print $0}' f1 &gt; aux;cp aux f1;\rm aux&lt;br/&gt;
  </code></pre>
  
  <p>Does awk has something like <code>-i</code> option in sed?</p>