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
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
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
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
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
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
>
>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
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
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
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
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
> 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
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
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
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?
>
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
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
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
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
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
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
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
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
> 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
Thank you for your mail.
-Original Message-
·ol : 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
; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
ú : 1999N1019ú 1:51
¼ : Re: Search a symbol in the source tree
>On Mon, 18 Oct 1999, Tetsuro Teddy FURUYA wrote:
>
>> From: Jacques Vidr
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
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
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;
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
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
31 matches
Mail list logo