From owner-freebsd-questions@FreeBSD.ORG Thu May 18 19:29:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7135D16A431 for ; Thu, 18 May 2006 19:29:35 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4915A43D45 for ; Thu, 18 May 2006 19:29:33 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k4IJT8Zj024545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 May 2006 22:29:09 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k4IJVI7L062824; Thu, 18 May 2006 22:31:18 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k4IJVISe062823; Thu, 18 May 2006 22:31:18 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 18 May 2006 22:31:18 +0300 From: Giorgos Keramidas To: jason zeng Message-ID: <20060518193118.GA62780@gothmog.pc> References: <20060518192204.94097.qmail@web50208.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060518192204.94097.qmail@web50208.mail.yahoo.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.403, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.80, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: how to search keywords in all directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 19:29:35 -0000 On 2006-05-18 15:22, jason zeng wrote: > Hello! > > our system is runing on FreeBSD 5.3. using php+mysql. now I > take over codes(programs) management and maintains.there are a > lots of .php code and Database tables. what I have now are > database, tables structures, and just a few programs > description. so I don't know the relationship in these php > programs. I really need read these programs when sometime it > has something wrong.I have to do these troubleshooting. > > I want to know if there are some shortcut way to speed up my > work. there is a common program in my system that many others > call it.the common.php hase many classes and functions, for > example, function displaySelect(), I hope to find how many > programs call this function and where these programs are? how > can I search them using Unix command (s)? What I know is all > php programs are at /usr/local/php/html directory.from there, > there are many sub-directories. [Text wrapped] Please try capitalizing sentences & wrap your text using a more reasonable line length (i.e. 72-75 characters per line). It is awful trying to read stuff like the original. I think what you are looking for is something like: $ cd /usr/local/php/html $ find . -type f | xargs fgrep common.php