title: Extract one word after a specific word on the same line
body: <p>How can I extract a word that comes after a specific word in Linux (csh)?
  More precisely, I have a file which has a single line which looks like this:</p>
  
  <pre><code><i>[some useless data]</i> --pe_cnt <b>100</b> --rd_cnt 1000 <i>[some more data]</i></code></pre>
  
  <p>I want to extract the number <strong><code>100</code></strong> which is after the <code>--pe_cnt</code> word.
  I cannot use sed as that works only if you want to extract an entire line. Maybe I can use awk? </p>
  
  <p>Also, I have multiple files that have different values instead of <code>100</code> so I need something that extracts the value but doesn't depend on the value.</p>