3 ms·
Rather than doing recursive greps, I think that LXR (The Linux Cross Reference) is a much better way of exploring the kernel: http://lxr.linux.no/ http://lxr.li
by scott_s 15y ago
Rather than doing recursive greps, I think that LXR (The Linux Cross Reference) is a much better way of exploring the kernel: http://lxr.linux.no/ http://lxr.linux.no/
- burgerbrain 15y agoMore generally, Ack is great for doing "recursive grep's" on source code. By default it does a pretty good job of only listing matches from filetypes you're likely to care about.
- Cieplak 15y agoWow I just learned about Ack as a result of your comment. This is a scale of magnitude better than grep -R [pattern] [directory] for searching through large codebases Thanks!
- jk 15y agocscope (kscope if you want GUI) will be easier if you have a copy of kernel. lxr is useful when you do not have a local copy of kernel.
- achiang 15y agoDon't forget ctags too. I feel physical pain when I see people navigating C source trees with grep.
- davvid 15y agoI think most gitsters (this is the kernel, afterall) would say: $ git grep foo -- '*.c'