How can I configure grep
so that I could highlight in color smarter? By using different colors?
Problem: grep --color
defaults to using red to highlight matches, but it still difficult to read for consecutive runs. If I run grep
three times, I would like the first run to use red, the second to use some other color (say, green), the third to use red again, and so on.
I read before there is a hack to swap the color in terminal use every another run, so that output will be clean and easier to read. But I forget what that is; is it zsh or bash-script, or some other shell?