title: How to use exclude-patterns from a file
body: <p>I want to use awk to search for pattern in multiple files but exclude some patterns from file</p>
  
  <p>This is the code I have tried</p>
  
  <pre><code>BEGIN { print "Begin Processing of various Records"}
  /Type.*ABC/ {a=1} /999/{a=0; if (a==1) print a;}
  END { print "Process Complete" }
  </code></pre>
  
  <p>Examples:</p>
  
  <p>This is the file example</p>
  
  <pre><code>Resources:
    CODE:
      Type: "ABC::DEF::AVC"
      Type: "ABC::DEF::999"
      Type: "ABC::DEF::ZZZ"
  </code></pre>
  
  <p>Now suppose I have file excludes with content</p>
  
  <pre><code>999
  888
  ZZZ
  </code></pre>
  
  <p>Now, I want to display all lines with match first pattern but excludes if any pattern from excludes is found.</p>