Hacker News new | ask | show | jobs
by anamexis 1711 days ago
If you use ripgrep, -o will only show the matching part of the line. It also has a --max-filesize flag.
1 comments

Thank you! I just tried it and --max-filesize worked great, ... -o also worked however it would be nice if -o showed a bit of context around the match (maybe 50 chars or so before and after), still useful all the same. Thanks again.