When I make grep
highlight the matches like this:
echo hello hello | grep --color "hello"
I get highlighted all matches in the line, which in the above case is all the line:
hello hello
How can I get highlighted only the first ocurrence:
hello hello
I suppose I can do it with a complex regex but I wonder if there a simpler solution.