Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 1999 02:14:13 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Search a symbol in the source tree
Message-ID:  <38036C65.D5B1BD3E@newsguy.com>
References:  <Pine.GSO.3.96.991012102820.6979B-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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

or similar.

--
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org

	"I always feel generous when I'm in the inner circle of a
conspiracy to subvert the world order and, with a small group of
allies, just defeated an alien invasion. Maybe I should value myself
a little more?"




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38036C65.D5B1BD3E>