Check out example codes for "grep with color highlight". It will help you in understanding the concepts better.

Code Example 1

grep -rinw hero --color=always ./

NOTE:
the option "--color=always" works to highlight our requiered string "hero"

Learn ReactJs, React Native from akashmittal.com