title: Exact string match in awk
body: <p>I have a file test.txt with the next lines</p>
  
  <pre><code>1997           100   500   2010TJ
  2010TJXML      16    20    59
  </code></pre>
  
  <p>I'm using the next awk line to get information only about string 2010TJ</p>
  
  <pre><code>awk -v var="2010TJ" '$0 ~ var {print $0}' test.txt
  </code></pre>
  
  <p>But the code print the two lines. I want to know how to get the line containing the exact string</p>
  
  <pre><code>1997  100   500   2010TJ
  </code></pre>
  
  <p>the string can be placed in any column of the file.</p>