title: Looks for patterns across different lines
body: <p>I have a file like this (test.txt):</p>
  
  <pre><code>abc
  12
  34
  def
  56
  abc
  ghi
  78
  def
  90
  </code></pre>
  
  <p>And I would like to search the 78 which is enclosed by "abc\nghi" and "def". Currently, I know I can do this by:</p>
  
  <pre><code>cat test.txt | awk '/abc/,/def/' | awk '/ghi/,'/def/'
  </code></pre>
  
  <p>Is there any better way?</p>