Search a symbol in the source tree

1999-10-12 Thread Zhihui Zhang
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. -Zhihui To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-h

Re: Search a symbol in the source tree

1999-10-12 Thread Dan Nelson
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 "recur

Re: Search a symbol in the source tree

1999-10-12 Thread bush doctor
Out of da blue Zhihui Zhang aka ([EMAIL PROTECTED]) 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. Have you taken a loo

Re: Search a symbol in the source tree

1999-10-12 Thread Daniel C. Sobral
Zhihui Zhang wrote: > > 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. find /usr/src -name \*.\[ch] -print | xargs grep pattern

Re: Search a symbol in the source tree

1999-10-12 Thread Kris Kennaway
On Tue, 12 Oct 1999, bush doctor wrote: > Have you taken a look at global, gtags, or htags. They are part of > the base system. Also 'http://lxr.linux.no/freebsd/source' is rather > helpful ... or the glimpse port. or grep -R, which is recursive grep. Kris XOR for AES -- join the campa

Re: Search a symbol in the source tree

1999-10-12 Thread Greg Lehey
On Tuesday, 12 October 1999 at 10:32:00 -0400, Zhihui Zhang wrote: > > 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. I use etags

Re: Search a symbol in the source tree

1999-10-12 Thread Victor Ivanov
> >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. > >-Zhihui > find . -name '*' | xargs grep expression ...or something :) rega

Re: Search a symbol in the source tree

1999-10-12 Thread W Gerald Hicks
I find it ironic that nobody has suggested global yet; That sure would make a nice port, especially since we could easily recommend gozilla as a nice way to browse and search the source tree. Cheers, Jerry Hicks [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscrib

Re: Search a symbol in the source tree

1999-10-13 Thread John Polstra
In article <[EMAIL PROTECTED]>, W Gerald Hicks <[EMAIL PROTECTED]> wrote: > I find it ironic that nobody has suggested global yet; > > That sure would make a nice port, especially since we could > easily recommend gozilla as a nice way to browse and search > the source tree. Er, global is part

Re: Search a symbol in the source tree

1999-10-13 Thread Bill Fumerola
On Wed, 13 Oct 1999, John Polstra wrote: > > That sure would make a nice port, especially since we could > > easily recommend gozilla as a nice way to browse and search > > the source tree. > > Er, global is part of the base system. :-) And for those who like to point and laugh: c [199

Re: Search a symbol in the source tree

1999-10-13 Thread Peter Jeremy
On Tue, 12 Oct 1999 10:32:00 -0400 (EDT), Zhihui Zhang <[EMAIL PROTECTED]> wrote: >Can anyone suggest me a way of searching symbols in the entire /usr/src >tree? I use id-utils (/usr/ports/devel/id-utils). It builds a single database file and has a variety of tools (including e-lisp) to search

Re: Search a symbol in the source tree

1999-10-13 Thread W Gerald Hicks
> Er, global is part of the base system. :-) Hehe, I knew that. My point was that the entire package isn't built and the author's going GPL anyway and since nobody recommended it ... That sure would make a nice port ;-) For the original poster gtags/htags is an excellent tool for your purposes

Re: Search a symbol in the source tree

1999-10-13 Thread Chuck Robey
On Wed, 13 Oct 1999, W Gerald Hicks wrote: > > Er, global is part of the base system. :-) > > Hehe, I knew that. > > My point was that the entire package isn't built and the author's > going GPL anyway and since nobody recommended it ... That sure would > make a nice port ;-) That's simply no

Re: Search a symbol in the source tree

1999-10-14 Thread Darryl Okahata
Peter Jeremy <[EMAIL PROTECTED]> wrote: > I use id-utils (/usr/ports/devel/id-utils). It builds a single database > file and has a variety of tools (including e-lisp) to search the database. > > Since global(1) was mentioned in this threaad, I decided to have a look > at it. It seems much slow

Re: Search a symbol in the source tree

1999-10-15 Thread Shigio Yamaguchi
Darryl Okahata <[EMAIL PROTECTED]> wrote: > Looking for where "utmp.h" is used: > > global -x -s utmp.h > > This takes more than 2212 seconds (over 36 minutes!), and outputs It seems that something wrong (bug?) occurred. Would you please tell me the version of FreeBSD and GLOBAL? >

Re: Search a symbol in the source tree

1999-10-16 Thread Shigio Yamaguchi
I wrote: > > Looking for where "utmp.h" is used: > > > > global -x -s utmp.h > > > > This takes more than 2212 seconds (over 36 minutes!), and outputs > > It seems that something wrong (bug?) occurred. > Would you please tell me the version of FreeBSD and GLOBAL? A structural problem

Re: Search a symbol in the source tree

1999-10-17 Thread $B8EC+(B $BE/O:(B
From: Zhihui Zhang <[EMAIL PROTECTED]> Subject: Search a symbol in the source tree Date: Tue, 12 Oct 1999 10:32:00 -0400 (EDT) Message-ID: <[EMAIL PROTECTED]> zzhang> zzhang> Can anyone suggest me a way of searching symbols in the entire /usr/src zzhang> tree? I normally us

Re: Search a symbol in the source tree

1999-10-17 Thread Jacques Vidrine
On 18 October 1999 at 0:39, Tetsuro Teddy FURUYA (=?iso-2022-jp?B?GyRCOEVDKxsoQiAbJEJFL086GyhC?=) <[EMAIL PROTECTED]> wrote: > It seems queer to me that there has been none who has refered to > find - exec > pairs. > > You may type into shell like; > $find . -name "*.c" -print -exec "egrep" "-i

Re: Search a symbol in the source tree

1999-10-17 Thread $B8EC+(B $BE/O:(B
From: Jacques Vidrine <[EMAIL PROTECTED]> Subject: Re: Search a symbol in the source tree Date: Sun, 17 Oct 1999 11:37:11 -0500 n> On 18 October 1999 at 0:39, Tetsuro Teddy FURUYA (=?iso-2022-jp?B?GyRCOEVDKxsoQiAbJEJFL086GyhC?=) <[EMAIL PROTECTED]> wrote: n> > It seems q

RE: Search a symbol in the source tree

1999-10-17 Thread Teddy
Thank you for replying to me. -Original Message- Greg Lehey <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]> CC : [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTE

Re: Search a symbol in the source tree

1999-10-18 Thread Scott Hess
To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, October 17, 1999 11:17 AM Subject: Re: Search a symbol in the source tree > From: Jacques Vidrine <[EMAIL PROTECTED]> > Subject: Re

Re: Search a symbol in the source tree

1999-10-18 Thread Bakul Shah
A couple of useful packages can make this much quicker. mkid from ports/devel/id-utils builds a database of symbols given a source tree. Then you can use gid to grep for a symbol, lid to get a list of files that havea symbol etc. mkid knows about c, c++ and may be some other languages. If you w

Re: Search a symbol in the source tree

1999-10-18 Thread Brian Beattie
On Mon, 18 Oct 1999, Tetsuro Teddy FURUYA wrote: > From: Jacques Vidrine <[EMAIL PROTECTED]> > Subject: Re: Search a symbol in the source tree > Date: Sun, 17 Oct 1999 11:37:11 -0500 > n> On 18 October 1999 at 0:39, Tetsuro Teddy FURUYA >(=?iso-2022-jp?B?GyRCOEVDKxsoQiA

Re: Search a symbol in the source tree

1999-10-18 Thread Darryl Okahata
> But, what various and interesting methods to search symbols there are ! Do people actually read what's posted here? A few days ago, I posted a detailed comparison of various packages. Go read the archives: http://www.freebsd.org/cgi/getmsg.cgi?fetch=331467+341670+/usr/loca

RE: Search a symbol in the source tree

1999-10-19 Thread Teddy
Thank you for your mail. -Original Message- ·ol : Darryl Okahata <[EMAIL PROTECTED]> Œ–¼ : Re: Search a symbol in the source tree >> But, what various and interesting methods to search symbols there are ! > > Do people actually read what's posted here? &g

RE: Search a symbol in the source tree

1999-10-19 Thread Teddy
; [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]> “úŽž : 1999”N10ŒŽ19“ú 1:51 Œ–¼ : Re: Search a symbol in the source tree >On Mon, 18 Oct 1999, Tetsuro Teddy FURUYA wrote: > >> From: Jacques Vidr

Re: Search a symbol in the source tree

1999-10-19 Thread $B8EC+(B $BE/O:(B
ot; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Subject: RE: Search a symbol in the source tree Date: Wed, 20 Oct 1999 00:13:10 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal

Re: Search a symbol in the source tree

1999-10-19 Thread $B8EC+(B $BE/O:(B
t;[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: Search a symbol in the source tree Date: Mon, 18 Oct 1999 14:45:08 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8

Re: Search a symbol in the source tree

1999-10-19 Thread $B8EC+(B $BE/O:(B
quot; <[EMAIL PROTECTED]> To: "Brian Beattie" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Search a symbol in the source tree Date: Wed, 20 Oct 1999 00:13:58 +0900 MIME-Version: 1.0 Content-Type: text/plain;

Re: Search a symbol in the source tree

1999-10-20 Thread Greg Lehey
On Monday, 18 October 1999 at 3:17:31 +0900, ?$B8EC+?(B ?$BE/O:?(B wrote: > From: Jacques Vidrine <[EMAIL PROTECTED]> > Subject: Re: Search a symbol in the source tree > Date: Sun, 17 Oct 1999 11:37:11 -0500 > n> On 18 October 1999 at 0:39, Tetsuro Teddy FURU

Re: Search a symbol in the source tree

1999-11-01 Thread Warner Losh
In message <[EMAIL PROTECTED]> Jacques Vidrine writes: : > $find . -name "*.c" -print -exec "egrep" "-i" "idt" {} \; | less : > Here , "idt" is a search string. : : That's because no one wants a separate invocation of egrep for : every file! find . -name \*.c | xargs egrep -i idt | less is