Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
svedin
· 3y ago · 0 comments
ripgrep has a --passthru flag that does exactly this
tail -f access.log | rg --passthru '\.jpg'
Comments
[–]
philo23
3y ago
Brilliant, this looks like exactly what I want. I already use ripgrep a lot, so I should have guessed it had this feature already but wouldn't have known what to search for to find it! Thank you
[–]
zem
3y ago
I have that aliased to `hl` in my bashrc
[–]
jpitz
3y ago
As does ack