title: Grep Search all files in directory for string1 AND string2
body: <p>How can I make use of grep in cygwin to find all files that contain <strong>BOTH</strong> words.</p>
  
  <p>This is what I use to search all files in a directory recursively for one word:</p>
  
  <pre><code>grep -r "db-connect.php" .
  </code></pre>
  
  <p>How can I extend the above to look for files that contain both "db-connect.php" AND "version".</p>
  
  <p>I tried this: <code>grep -r "db-connect.php\|version" .</code> but this is an OR i.e. it gets file that contain one or the other.</p>
  
  <p>Thanks all for any help</p>