Hacker News new | ask | show | jobs
by josephg 154 days ago
I search for stuff all the time. But full disk search just never seems to solve the problems I have. Whatever keyword I’m looking for will inevitably show up in thousands of unrelated header files, Python files and JavaScript files in various node_modules directories and whatnot. Search in finder (or spotlight) is always way too noisy to actually do what I want it to do. Spending hours of cpu time to build that a useless index is deeply disrespectful.
1 comments

The typical find oneliner to do a fulltext search invokes sed. sed supports regular expressions, so you can do quite a bit more than just a simple text match. And you can also invoke various filter chains on the results.