title: How can I search for a multiline pattern in a file?
body: <p>I needed to find all the files that contained a specific string pattern. The first solution that comes to mind is using <em>find</em> piped with <em>xargs grep</em>:</p>
  
  <pre><code>find . -iname '*.py' | xargs grep -e 'YOUR_PATTERN'
  </code></pre>
  
  <p>But if I need to find patterns that spans on more than one line, I'm stuck because vanilla grep can't find multiline patterns.</p>