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?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

km4hr writes:

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

I'm amazed this works on HP -- you want

 >  find .| xargs grep "hello"

Your line looks for hello in the _name_ of each file.

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFKUjH6kjnJixAXWBoRAvByAJ9dnLZ1LCvVwYqzg4XwVMcPL9e2uACfY0/1
3mnndUCptMZf25ELjmH0fTE=
=jutk
-----END PGP SIGNATURE-----

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