title: awk syntax error: unexpected end of file
body: <p>I'm getting a:
  <strong>-bash: unexpected EOF while looking for match `'' 
  -bash: syntax error: unexpected end of file</strong>
  error and I have no idea why. For some reason, it isn't telling me which line the error is on either. Any help is greatly appreciated! </p>
  
  <pre><code>$ awk ‘BEGIN {
  sent=0;
  received=0;}
  
  {
  if($1 == ”s” &amp;&amp; $19 == ”AGT”)
  {sent++;}
  else if($1 == “r” &amp;&amp; $19 == ”AGT”)
  {received++;}
  }
  
  END
  
  {
  printf “Packet Sent:%d”,sent;
  printf “\n Packet Received:%d”,received;
  printf “\n Packet Delivery Ratio:%.2f\n”,(sent/received)*100;
  }’
  </code></pre>