Hacker News new | past | comments | ask | show | jobs | submit login

I've found that `grep` with PCRE enabled is far more useful to find exact tokens like variable names or error message strings.

I've never had Github's search find what I'm looking for.




That requires you to clone. It's a minor hassle if you search over a single repo, but when searching across an organization or the whole site, using grep is not an option.


> That requires you to clone. It's a minor hassle if you search over a single repo, but when searching across an organization or the whole site, using grep is not an option.

Are you kidding? The finer granularity that searching over an organization or whole site makes grep the far better choice especially since its output can be fed as input to more filtering steps.


I can't understand your point. GitHub can search over finer granularities e.g. single repo. And did you understand my use case at all, about grep not being an option when searching at wider scales?

No, I am not "kidding"... are you?


I don't understand grep not being an option when searching at wider scales. I have yet to find a wide-enough scale that grep can't handle.

And GitHub's search results are _literally_ useless.

> No, I am not "kidding"... are you?

Nope



I use pure `grep`, not `git-grep`.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: