title: Unix -microfocus: Find a word after a specific word
body: <p>I would like to know to find word in a file after a specific word and I explain to with an example.</p>
  
  <p><strong>File.txt</strong></p>
  
  <pre><code>03 WS-COUNTER            PIC X(03).
  
  PROCEDURE DIVISION.
  
  A-MAIN 
  
  MOVE ZEROES TO WS-COUNTER
  </code></pre>
  
  <p>In this example, I would like to know how to find the word <code>WS-COUNTER</code> after <code>PROCEDURE DIVISION</code>. If I execute in unix a <code>grep -i "WS-COUNTER" File.txt</code>.   </p>
  
  <p>I find two positive results, but I would like to find only the second one.</p>
  
  <p>Can someone help me?</p>