title: awk: filter block only if specific line does not exist
body: <p>I got a text stream that looks something like this:</p>
  
  <pre><code>whatever =&gt; foo,
  arg =&gt; 'some text
     over multiple lines
     sometimes',
  bytes =&gt; 123,
  ...
  </code></pre>
  
  <p>What I'm interested in is the text between <code>arg =&gt;</code> and <code>bytes =&gt;</code>. So I filtered out the block with</p>
  
  <pre><code>cat mystream | awk '/arg =&gt;/,/bytes =&gt;/'
  </code></pre>
  
  <p>which works fine. But now I want to skip the whole block if there is one word somewhere in the text. Something like <code>grep -v</code> but for the whole block, not just the line. Any ideas? Thanks.</p>
  
  <p>Note, this is not restricted to awk, it's just what came to my mind. Any other tool is fine, too.</p>