This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why doesn't "find .|grep aword" work?


On Mon, Jul 06, 2009 at 10:13:12AM -0700, 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.

Not really Cygwin specific but:

  grep -r hello .

cgf

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]