title: Run an awk statement from a shell script
body: <p>I want to run this awk statement from inside a shell script:</p>
  
  <pre><code>awk -F, '$45==341 &amp;&amp; $47==341 &amp;&amp; ($13==3) &amp;&amp; $15 &lt;=600 &amp;&amp; $48==5410 &amp;&amp; $50=="pattern"' \
  full_path/logfile.log | cut -d, -f15 | sort -unr |head -1
  </code></pre>
  
  <p>If I run it directly from command line, it works perfectly but from inside a shell script it fails.</p>
  
  <p>I understand there's an issue with shell script command line parameters and awk references, like <code>$45</code>, <code>$47</code> and so on...</p>
  
  <p>I tryed to escape <code>$</code> without success.</p>