title: awk: bailing out at source line 1
body: <p>I'm looking to get some colorized log output and don't want to use multitail.</p>
  
  <p>The command I'm trying to execute is:</p>
  
  <pre><code>tail -100f some_file.log | awk '/INFO/ {print "\033[32m" $0 "\033[39m"} /Exception/ {print "\033[31m" $0"\033[39m"}'
  </code></pre>
  
  <p>but I'm getting the error:</p>
  
  <pre><code>awk: syntax error at source line 1
   context is
       &gt;&gt;&gt; /INFO &lt;&lt;&lt; / {print "\033[32m" $0 "\033[39m"} /Exception/ {print "\033[31m" $0"\033[39m"}
      4 missing ]'s
  awk: bailing out at source line 1
  </code></pre>
  
  <p>My totally non-expert guess is that for some reason it thinks the terminal codes should have closing <code>]'s</code> on them.  I've tried escaping them but that doesn't work and frankly, I'm not sure that this wouldn't jack up the terminal codes.</p>