title: Color Linux command output
body: <p>For example, I'd like to color the output of the <code>locate</code> command so it's easily distinguished from the other terminal text.</p>
  
  <p>It should work something like this:</p>
  
  <pre><code>locate -bir pdf | some_command_to_color_the_result
  </code></pre>
  
  <p>Coloring shouldn't be limited for the <code>locate</code> command only: I need a generic solution that colors text using pipelines, for example feeding it the output of <code>grep</code> or <code>cat</code>.</p>
  
  <p>If there's no built-in Linux command, any hints on how to create one are appreciated.</p>