X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com Subject: Re: Why doesn't "find .|grep aword" work? References: <24359078 DOT post AT talk DOT nabble DOT com> From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) Date: Mon, 06 Jul 2009 18:18:50 +0100 In-Reply-To: <24359078.post@talk.nabble.com> (km4hr@netscape.net's message of "Mon, 6 Jul 2009 10:13:12 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----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 - --=20 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 AT inf DOT ed DOT ac DOT uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged sp= am] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFKUjH6kjnJixAXWBoRAvByAJ9dnLZ1LCvVwYqzg4XwVMcPL9e2uACfY0/1 3mnndUCptMZf25ELjmH0fTE=3D =3Djutk -----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