From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8221 Path: news.gmane.org!not-for-mail From: william.a.george@gmail.com Newsgroups: gmane.emacs.gnus.user Subject: grep a string in different maps. Date: 17 Nov 2006 01:57:38 -0800 Organization: http://groups.google.com Message-ID: <1163757458.679316.268560@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1163760028 1213 80.91.229.2 (17 Nov 2006 10:40:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2006 10:40:28 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Nov 17 11:40:26 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gl18p-0000D3-IX for gegu-info-gnus-english@m.gmane.org; Fri, 17 Nov 2006 11:40:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gl18o-0006gO-TS for gegu-info-gnus-english@m.gmane.org; Fri, 17 Nov 2006 05:40:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 25 Original-NNTP-Posting-Host: 194.103.159.2 Original-X-Trace: posting.google.com 1163757464 677 127.0.0.1 (17 Nov 2006 09:57:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Nov 2006 09:57:44 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e3g2000cwe.googlegroups.com; posting-host=194.103.159.2; posting-account=3aEwkg0AAACjdMYn5Wo2v2XLndflpiJl Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78404 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8221 Archived-At: Hi. I have a problem. I'm using emacs on windows xp. I donwloaded some .exe file to be able to run UNIX commands on window (it's called UnixUtils). What I need to perform is to search for a string in files. Grep finds the string if the files are in the same directory. But my problem is that I want to perform this search on files that exist in other directories. A little description of my directory tree: - SW (directory) - logical (directory) - terminal (directory) - OS (directory) If I'm standing in the terminal directory then it is OK to find a string among the files in "terminal", but if I want to find the string when I'm standing in "SW" then it not possible. Grep cannot recurse through the directories. I tried this combination also: find . -name * -exec grep -n string NUL {} And I got a negative result too. Can someone please help me to find a way to solve my problem? Thanks in advance.