title: awk: ^ backslash not last character on line
body: <p>Can anybody help in resolving this issue? Not sure wht it is giving problem.</p>
  
  <pre><code>ssh root@host1 "tail -f /data1/logs/logger.log | awk '{ if(\$0 ~ /^Mar|^Apr/) { printf(\"\\n%s\",\$0)  } if(\$0 \!~ /^Mar|^Apr/) { printf(\"%s\", \$0);} };' "
  root@host1's password:
  awk: { if($0 ~ /^Mar|^Apr/) { printf("\n%s",$0)  } if($0 \!~ /^Mar|^Apr/) { printf("%s", $0);} };
  awk:                                                     ^ backslash not last character on line
  </code></pre>