We can colorize the grep output using the –color option but it will fain with a pipe on Linux/Unix. For example:
— nixCraft 🐧 (@nixcraft) August 31, 2021
grep –color foo input | more
grep –color foo input | less -r
But this will work
grep –color=always foo input | less -r
See https://t.co/fjzv1iiHXt for more info. pic.twitter.com/JdOjQJDlpS