title: Grep files in between wget recursive downloads
body: <p>I am trying to recursively download several files using <code>wget -m</code>, and I intend to <code>grep</code> all of the downloaded files to find specific text. Currently, I can wait for <code>wget</code> to fully complete, and then run grep. However, the <code>wget</code> process is time consuming as there are many files and instead I would like to show progress by <code>grep</code>-ing each file as it downloads and printing to <code>stdout</code>, all before the next file downloads.</p>
  
  <p>Example:</p>
  
  <pre><code>download file1
    grep file1 &gt;&gt; output.txt
  download file2
    grep file2 &gt;&gt; output.txt
  ...
  </code></pre>
  
  <p>Thanks for any advice on how this could be achieved.</p>