title: How to use awk to extract a line with exact match
body: <p>How do I use awk to search for an exact match in a file?</p>
  
  <pre><code>test.txt
  hello10
  hello100
  hello1000
  </code></pre>
  
  <p>I have tried the following and it returns all 3 lines</p>
  
  <pre><code>awk '$0 ~ /^hello10/{print;}' test.txt
  </code></pre>
  
  <p>grep -w hello10 does the trick but on this box grep version is very limited and only few switches available</p>