title: Colour highlighting output based on regex in shell
body: <p>I'd like to know if I can colour highlight the output of a shell command that matches certain strings. </p>
  
  <p>For example, if I run myCommand, with the output below:</p>
  
  <pre><code>&gt; myCommand
  DEBUG foo bar
  INFO bla bla
  ERROR yak yak
  </code></pre>
  
  <p>I'd like all lines matching ^ERROR\s.* to be highlighted red.</p>
  
  <p>Similarly, I'd like the same highlighting to be applied to the output of grep, less etc...</p>
  
  <p>EDIT: I probably should mention that ideally  I'd  like to enable this feature globally via a 'profile' option in my .bashrc.</p>