Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  grep -RHn "_content_" .




Though I much prefer this solution, the GP solution is better when there are non-text documents in the directory tree. Find is nice and that you can narrow it down by file name or file extension, without relying on bash globs.

Yep

I just did it more tongue-in-cheek like the unneeded cat commands.

There’s definitely use cases. If you want to search for a keyword on the file name, that one’s great.




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

Search: