title: How do I do an exact word match on a variable in ksh?
body: <p>I used the following syntax as part of a ksh script to verify if the word <code>Validation</code> exists in <code>LINE_FROM_FILE</code>.</p>
  
  <pre><code>[[ "${LINE_FROM_FILE##*Validation}" != "${LINE_FROM_FILE}" ]] &amp;&amp; print "match Validation"
  </code></pre>
  
  <p>The problem of this syntax is that it is also matching words like <code>Valid</code> or <code>ValidationVALID</code> etc. and my goal is to exactly match the word <code>Validation</code> in the variable <code>$LINE_FROM_FILE</code>.</p>
  
  <p>I ask if it is also possible to use Perl syntax in my script to exactly match the word <code>Validation</code>, for example:</p>
  
  <pre><code>[[ ` some perl command ` = Validation  ]] &amp;&amp; print "match Validation"
  </code></pre>