News for hackers. Stuff that matters.
Re:If you use GNU grep on text files, use the -a (--text) op... by freedomben on Tuesday April 21, 2020 @02:55PM (#22938136)
Also a ripgrep fan. I rolled my own search tool[1] due to dissatisfaction with the available options at the time, but I gave ripgrep an evaluation when it came out and it was really good. I ultimately still use my own tool because I'm very attached to the way grep colors/formats stuff (and I implemented the same scheme in findref) but I use ripgrep on large code bases (like the Linux kernel) since it performs a lot better due to various optimizations.

[1] https://github.com/FreedomBen/findref

Re:If you use GNU grep on text files, use the -a (--text) op... by burntsushi on Tuesday April 21, 2020 @11:33PM (#22941825)
Small note: if you want ripgrep's output to match grep's, then you can do

    alias rg="rg --no-heading"
It will still show file paths and line numbers. Those can be disabled too, with `rg --no-heading --no-line-number --no-filename`.
Re:If you use GNU grep on text files, use the -a (--text) op... by freedomben on Wednesday April 22, 2020 @10:50AM (#22946128)
oh neat, thank you!