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


