title: redirecting output of awk script to a file
body: <p>I have created an awk script. I want to save its output in a file. But</p>
  
  <pre><code>awk -f a.awk &gt;meta.txt
  </code></pre>
  
  <p>is not working. can someone tell me why is this happening?
  Can anyone suggest which command is best for creating a file with a particular format. Is it OK if I use awk for this purpose.</p>