by philo23 · 3y ago · 0 comments
I’ve not found anything like that yet though, closest I’ve come is using grep with the before/after/context flag with a high number of lines or using search in less, but I want to do something like...
tail -f access.log | highlight ".jpg"
Maybe I’ve just not found the right flag for grep yet...Edit: Thank you everyone for your suggestions, you've all been very helpful! And apologies again for hijacking the topic, tailspin looks very neat.
cat <file> | grep -E --color "<regex>|$"
Where `<regex>` is your pattern. tail -f access.log | rg --passthru '\.jpg'| less -p ".jpg"