For example, I\'d like to color the output of the locate command so it\'s easily distinguished from the other terminal text.
locate
It should work something li
The following answered my question:
1- I create an alias in my .bashrc
alias color='grep --color .'
2- Then whenever I want to color the pipeline text output I use color alias like:
locate -bir pdf | color
This will color the output to red