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 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 <[EMAIL PROTECTED]>



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to