In the last episode (Oct 12), Zhihui Zhang said:
> Can anyone suggest me a way of searching symbols in the entire /usr/src
> tree? I normally use grep */*. But grep does not work recursively, right?
> Something like a small shell script may do this. Thanks a lot.
If you use zsh, it has a "recursive glob":
grep draw_mouse **/*.c
You could also use find | xargs:
find . -name "*.c" | xargs grep draw_mouse
Or you could use gtags/global:
gtags
global -gx "draw_mouse"
If you're really looking for the source file that defines a symbol,
global is the way to go.
--
Dan Nelson
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message