From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: using find-grep in emacs Date: Wed, 15 May 2013 21:46:40 +0200 Message-ID: <5193E620.1070603@easy-emacs.de> References: <3477d0ac-7526-4dd7-bc43-7dca9edb1d23@googlegroups.com> <0aa2bea2-27b8-4486-9440-f76e22fea2b1@googlegroups.com> <985b9ada-31f9-4761-bfdf-366a40d45760@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368647071 9188 80.91.229.3 (15 May 2013 19:44:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 May 2013 19:44:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 15 21:44:30 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uchck-0005ND-8E for geh-help-gnu-emacs@m.gmane.org; Wed, 15 May 2013 21:44:30 +0200 Original-Received: from localhost ([::1]:52952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uchcj-0006UB-Lb for geh-help-gnu-emacs@m.gmane.org; Wed, 15 May 2013 15:44:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UchcU-0006Sl-Ne for help-gnu-emacs@gnu.org; Wed, 15 May 2013 15:44:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UchcQ-0003LH-3E for help-gnu-emacs@gnu.org; Wed, 15 May 2013 15:44:14 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:58757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UchcP-0003L5-Ou for help-gnu-emacs@gnu.org; Wed, 15 May 2013 15:44:09 -0400 Original-Received: from [192.168.178.21] (brln-4db9f307.pool.mediaWays.net [77.185.243.7]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Lyh3D-1UPYGV1gxD-015ZJh; Wed, 15 May 2013 21:44:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: <985b9ada-31f9-4761-bfdf-366a40d45760@googlegroups.com> X-Provags-ID: V02:K0:jOUyUskaKn1B+f51zgBPAfnhkq3/bz9KzVzQmnzUE3m NkRZSWEvU2rX/b9S09Fw5NHcECclgk7ibiW86hlYwtTWSKRC4R h/3FZ95ejoEyieitGBBhpAfKh2CrgAKqUP5Xn8CMZ+hyDEKX5z /LP+JqOPeYXxQksG1IOT1zXutcO1ZBlJRf7fxcufFr/2mKJxr3 RtoxFf8w6D2pJy4wCBuHWH7QJCvEwpuuUv5TjbyVI1QqrVC8/q mYSKz2AH1MNCAhJk1FrqKX6Q3bj0RSu/er6KFkbpMI43Y3T0ck opYH7c2pw+4XIzQT2CbQEMI6TMuCKT0Pqak07khDmxsN56N9SK 2/it/c046k2q7na2GbIgCMKElcBlQlTpHxIh5dhdE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90822 Archived-At: Am 15.05.2013 21:11, schrieb Rami A: > Andreas, Thanks a lot. Is there a way to search in specific directories? Sure. Specify the directory following "find" i.e. find . assumes the current directory, so try find ./main/source find ./main/headers/ etc. or do some scripting like for i in "./main/source" "./main/headers/" "./main/something1" "./main/something2"; do ... done > I have my main directory lets say ./main/ then I have multiple directories underneath ./main/source ./main/headers/ ./main/something1 ./main/something2...etc I want to > only specify the search to be for directories "headers" and "source" once I specified ./main as my default grep destination. >