From owner-freebsd-hackers Sun Oct 17 9: 6:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ppp142114.asahi-net.or.jp (ppp142114.asahi-net.or.jp [202.213.142.114]) by hub.freebsd.org (Postfix) with ESMTP id 5114514DAF for ; Sun, 17 Oct 1999 09:06:22 -0700 (PDT) (envelope-from tfuruya@ppp142114.asahi-net.or.jp) Received: from localhost (localhost.tf.or.jp [127.0.0.1]) by galois.tf.or.jp (8.9.3/3.7W-Teddy-99050304) with ESMTP id AAA21402; Mon, 18 Oct 1999 00:39:45 +0900 (JST) To: zzhang@cs.binghamton.edu Cc: freebsd-hackers@freebsd.org Subject: Re: Search a symbol in the source tree From: Tetsuro Teddy FURUYA (=?iso-2022-jp?B?GyRCOEVDKxsoQiAbJEJFL086GyhC?=) In-Reply-To: Your message of "Tue, 12 Oct 1999 10:32:00 -0400 (EDT)" References: X-Mailer: Mew version 1.93 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19991018003944T.tfuruya@galois.tf.or.jp> Date: Mon, 18 Oct 1999 00:39:44 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 20 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Zhihui Zhang Subject: Search a symbol in the source tree Date: Tue, 12 Oct 1999 10:32:00 -0400 (EDT) Message-ID: zzhang> zzhang> Can anyone suggest me a way of searching symbols in the entire /usr/src zzhang> tree? I normally use grep */*. But grep does not work recursively, right? zzhang> Something like a small shell script may do this. Thanks a lot. 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" "idt" {} \; | less Here , "idt" is a search string. Teddy Furuya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message