title: Match exact word with awk on Mac OS X
body: <p>Try to use awk on Mac OS X. One example:</p>
  
  <pre><code>$ echo "abc stock def" | awk /stock/ 
  abc stock def
  $ echo "abc stockholder def" | awk /stock/
  abc stockholder def
  </code></pre>
  
  <p>I got trouble when I try to exact match a word with awk. For instance, I want to match <code>stock</code>only instead of <code>stockholder</code> in above example. I tried with <code>\&lt;</code>, <code>\&gt;</code>, <code>\b</code>, <code>\y</code>. However all of them did not give me expected results. </p>
  
  <p>Thanks</p>