Right now I am on MacOS, and I am using iterm2 as my terminal app. It's got some great features but one limitation is that when I use ctrl-f to search for something, it will highlight the results in yellow, but it won't filter out the non-matching results. I am looking for a way to filter out all non-matching lines, using the terminal application. What I mean, is it would only display stuff in the terminal, that matched what was being searched for - which will eliminate the need for a lot of scrolling up and down.
Does anyone know if iterm2 can do this, or should I be looking for another terminal app?
pbpaste | grep somesearchstring
.