title: Getting Lines of Context after a search in batch or VBS
body: <p>So I have a text file with that's filled in this format</p>
  
  <pre><code>Identifier: NUMBER1
      Information1 = something
      Information2 = other something
      Information3 = more something
  
  Indentified: NUMBER2
      Information1 = something
      Information2 = other something
      Information3 = more something
  </code></pre>
  
  <p>I've tried using findstr but, unlike grep, it can't give me lines of context. </p>
  
  <p>How can I get lines of context so that I can search for other bits of information?</p>
  
  <p>If I could I would install grep and awk and such for Windows, but this is a tool going out to others so I can only use what is native to the OS, in this case batch and VBS.</p>
  
  <p>The equivalent unix expression of what I would like to do is as follows:</p>
  
  <pre><code>grep -A 4 "NUMBER1" file | grep "Information2" | awk ' { print $3 } ' #not sure if $3 or $2 off the top of my head
  </code></pre>