From owner-freebsd-questions@FreeBSD.ORG Thu May 18 20:02:03 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 F116016A455 for ; Thu, 18 May 2006 20:02:02 +0000 (UTC) (envelope-from jason388600@yahoo.ca) Received: from web50209.mail.yahoo.com (web50209.mail.yahoo.com [206.190.38.50]) by mx1.FreeBSD.org (Postfix) with SMTP id DDD3C43D76 for ; Thu, 18 May 2006 20:01:54 +0000 (GMT) (envelope-from jason388600@yahoo.ca) Received: (qmail 13558 invoked by uid 60001); 18 May 2006 20:01:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RJiQ/4CaoKO/QObthyIo0suZ8Cu9ZeK4xfrj2a6x1A3EIJ+kr2rLMbdyshEjy0hxwwpB5zlkkUWCy2EBNsLLLkYrSmWD1pLxAbiL4l3dEJ2EJmPaEkYGPMW3mC24z4PryClMG3wUuy5C9UB4NXrIooqpYqBWwQEufLpmMPB/CyQ= ; Message-ID: <20060518200154.13556.qmail@web50209.mail.yahoo.com> Received: from [207.107.231.90] by web50209.mail.yahoo.com via HTTP; Thu, 18 May 2006 16:01:54 EDT Date: Thu, 18 May 2006 16:01:54 -0400 (EDT) From: jason zeng To: Giorgos Keramidas In-Reply-To: <20060518193118.GA62780@gothmog.pc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 20:02:05 -0000 Hello! Giorgos, Thanks for your response. It is very useful for me. I tried it works! so I don't warry at weekend to read a lots of programs at home. :-) Jason Giorgos Keramidas wrote: 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 --------------------------------- Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger with Voice