Date: Mon, 18 Oct 1999 00:39:44 +0900 From: Tetsuro Teddy FURUYA (=?iso-2022-jp?B?GyRCOEVDKxsoQiAbJEJFL086GyhC?=) <ht5t-fry@asahi-net.or.jp> To: zzhang@cs.binghamton.edu Cc: freebsd-hackers@freebsd.org Subject: Re: Search a symbol in the source tree Message-ID: <19991018003944T.tfuruya@galois.tf.or.jp> In-Reply-To: Your message of "Tue, 12 Oct 1999 10:32:00 -0400 (EDT)" <Pine.GSO.3.96.991012102820.6979B-100000@sol.cs.binghamton.edu> References: <Pine.GSO.3.96.991012102820.6979B-100000@sol.cs.binghamton.edu>
index | next in thread | previous in thread | raw e-mail
From: Zhihui Zhang <zzhang@cs.binghamton.edu>
Subject: Search a symbol in the source tree
Date: Tue, 12 Oct 1999 10:32:00 -0400 (EDT)
Message-ID: <Pine.GSO.3.96.991012102820.6979B-100000@sol.cs.binghamton.edu>
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 <ht5t-fry@asahi-net.or.jp>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991018003944T.tfuruya>
