title: Search A Variable in Specific Column in BASH with awk
body: <p>I have LOG_FILE like below:</p>
  
  <pre><code>LOG|Server301|2015|05|12|00|58|35|572617|0|COMP|002.01.003.00|DSOHMSN2ViewCallback.cpp|142|CALLBACK:DSOHMSN2ViewCallback::FLIPBypassOn Changed SN=2 old value =2 new value =1
  LOG|Client2|2015|05|12|00|58|35|593088|0|COMP|002.01.003.00|AMSN.cpp|12577|CALLBACK:OHMOAM::ohmSN2ViewChange, Old FLIPBypassOnMT
  LOG|Server302|2015|05|12|00|58|35|593116|0|COMP|002.01.003.00|AMSN.cpp|12590|CALLBACK:OHMOAM::ohmSN4ViewChange, New FLIPBypassOnMT
  LOG|Server301|2015|05|12|00|58|35|593302|0|COMP|002.01.003.00|AMSN.cpp|12577|CALLBACK:OHMOAM::ohmSN3ViewChange, Old disableFLIPBypassOnMT
  LOG|Client1|2015|05|12|00|58|35|593324|0|COMP|002.01.003.00|AMSN.cpp|12590|CALLBACK:OHMOAM::ohmSN2ViewChange, New disableFLIPBypassOnMT
  </code></pre>
  
  <p>I just want to print line no which have</p>
  
  <ul>
  <li><p>word <code>Server</code> at 2nd column</p></li>
  <li><p>word <code>CALLBACK</code> at 15th column</p></li>
  <li><p>variable <code>$parameter_name</code> at 15th column</p></li>
  </ul>
  
  <p>I executed the below command:</p>
  
  <pre><code>parameter_name="FLIPBypassOnMT"
  $(awk -v var="$parameter_name" -F'|' '$2 ~ /Server/ &amp;&amp; $15 ~ /CALLBACK/  &amp;&amp; index($15,var) { print NR}' $LOG_FILE 2&gt;/dev/null | tail -1)
  </code></pre>
  
  <p>But Not getting the line no.
  I am using sun4-solaris.
  please help me out.
  N.B: </p>
  
  <pre><code>$(awk -v var="$parameter_name" -F'|' '$2 ~ /Server/ &amp;&amp; $15 ~ /CALLBACK/ { print NR}' $LOG_FILE 2&gt;/dev/null | tail -1) 
  </code></pre>
  
  <p>is running fine.
  but need all the three criteria.</p>