title: How to find particular contents in list of files
body: <p>Please can someone tell how to find particular pattern in list of files.
  I use the command:</p>
  
  <pre><code>dir *.txt /b /s &gt;&gt; C:\Users\Amrendra\Downloads\NIT_Testing\fileList.txt
  </code></pre>
  
  <p>In <code>fileList.txt</code> I have a list of files.
  Now I want to find a certain pattern say <code>abc</code> in all the files listed.<br>
  So I want each line containing that pattern to be written into a new file.</p>
  
  <p>Please suggest as I am completely new to batch command.</p>
  
  <p>Thanks</p>