X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <24360027.post@talk.nabble.com>
Date: Mon, 6 Jul 2009 10:54:36 -0700 (PDT)
From: km4hr <km4hr@netscape.net>
To: cygwin@cygwin.com
Subject: Re: Why doesn't "find .|grep aword" work?
In-Reply-To: <24359078.post@talk.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <24359078.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Oops, my bad. I forgot about xargs. No wonder I couldn't get it to work.

Glad I asked anyway. I learned a some useful stuff, especially "grep -r".

thanks!


km4hr wrote:
> 
> Do pipes work in cygwin in the usual way?
> 
> Why doesn't the following command works on HP Unix? Why not cygwin?
> 
> find .|grep "hello"
> 
> I get no output from this command even though I'm sure the word "hello" is
> in some files.
> 
> What I want this command to do is find all files in all sub-directories
> and pipe the output to grep. Grep then looks in each file for the word
> "hello". The names of files that contain the word "hello" should be
> returned.
> 
> thanks.
> 

-- 
View this message in context: http://www.nabble.com/Why-doesn%27t-%22find-.%7Cgrep-aword%22-work--tp24359078p24360027.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

