How to highlight output with grep instead of filtering

Looking for bits of information swirling past you on the screen can be tiring. Thanks to grep one can filter out unneeded text. But what if you want to display everything and just highlight text that you think is relevant? Image ping for some information and an error gets filtered out since you didn’t explicitly search for it (because all YOUR code free from errors, right? 😉 ). Well, turns out grep can do just that:

An example that I just used:

Credit goes to user holygeek on stack overflow.

Leave a Reply

Your email address will not be published. Required fields are marked *