From owner-freebsd-hackers Tue Oct 12 17: 7:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id E8B4D14D5C for ; Tue, 12 Oct 1999 17:07:49 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA40530; Wed, 13 Oct 1999 09:37:41 +0930 (CST) Date: Wed, 13 Oct 1999 09:37:41 +0930 From: Greg Lehey To: Zhihui Zhang Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Search a symbol in the source tree Message-ID: <19991013093741.S78191@freebie.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 for this, in conjunction with Emacs. Like that, I can position the cursor on a word, press Alt-., and it will find the definition for me. It will also search for all occurrences with Alt-S. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message