Wow, after 25 years of Unix experience, I learned that you can filter output in #less.

Press ampersand (&) and enter a regex to show only lines matching the regex.

Press ampersand (&) and then exclamation mark (!) to apply an inverse filter.

@_xhr_ I ususally use grep to filter text streams, but when I don't, it's because I want to see the surrounding non-matching lines, so slash search (/) in less is much more useful to me

@wolf480pl For grep, consider using the -C switch (context):

-C NUM, -NUM, --context=NUMPrint NUM lines of output context. Places a line containing a group separator (--) between contiguous groups of matches. With the -o or --only-matching option, this has no effect and a warning is given.

@xhr@cybervillains.com

@cweickhmann @_xhr_ yeah I know how -C works, and I use it when it makes sense. But it only works when you know ahead of time how much context you need. I think I already said that somewhere else in the thread but can't find it now because mastodon likes to forget about old posts...
@wolf480pl
Absolutely. (Honestly, I didn’t check if you mentioned it elsewhere. I just thought in that context it may be useful for you or someone else reading the thread πŸ˜‰)
@xhr@cybervillains.com