title: How do I make grep output to a file?
body: <p>I'm trying to find some stuff in a large number of text files, and I want the output to be in a file so I can read it at leisure:</p>
  
  <pre><code>grep -i 'alter table' *.sql &gt;&gt; tables.txt
  </code></pre>
  
  <p>grep (this is the Windows version of the Gnu tool) complains at the >>. I've tried piping and all the rest, and there doesn't saeem to be an option to define  an output file either.</p>
  
  <p>Any ideas?</p>