From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Interactively finding file in a list of directories Date: Fri, 9 Mar 2007 21:51:20 +0100 Message-ID: References: <6dbd4d000703090752q5067f8e3i69d74d07d9cb51fd@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173473510 10411 80.91.229.12 (9 Mar 2007 20:51:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 20:51:50 +0000 (UTC) Cc: help-gnu-emacs To: Denis Bueno Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 21:51:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPm41-0006J3-Ng for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 21:51:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPm4L-0002Zg-Gi for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 15:52:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPm49-0002ZX-Rf for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 15:51:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPm48-0002Ys-4D for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 15:51:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPm47-0002Yo-Vk for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 15:51:51 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPm3l-00046v-Dv for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 15:51:29 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 94C166779424; Fri, 9 Mar 2007 21:51:28 +0100 (CET) Original-Received: from [62.134.227.122] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1HPm3k-0008Cx-00; Fri, 09 Mar 2007 21:51:28 +0100 In-Reply-To: <6dbd4d000703090752q5067f8e3i69d74d07d9cb51fd@mail.gmail.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41843 Archived-At: Am 09.03.2007 um 16:52 schrieb Denis Bueno: > For example, assume there are 4 different files all named "find.jsp" > in different directories, and I would like to find a particular one. I > would do M-x find-resource, type "find", hit TAB, it I would see a > list that looks something like: There is an interface to the UNIX locate database (M-x locate RET pattern RET). Regularly, once a day or once a weekly, the whole disk is searched and all path names, files and directories, but no "special files," are recorded in a database or hash file. The command locate takes as argument a search pattern that allows a few metacharacters and looks up this pattern in the database, so it's much faster than find. Executing locate as a shell command, you could filter a bit more with grep what locate returns ... -- Greetings Pete Think of XML as Lisp for COBOL programmers. -- Tony-A (some guy on /.)