delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/10/01:34:03

X-Spam-Check-By: sourceware.org
Date: Sun, 10 Dec 2006 01:33:39 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: xargs gives grep/gawk too much
Message-ID: <20061210063339.GB15846@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <31DDB7BE4BF41D4888D41709C476B65704169472 AT NIHCESMLBX5 DOT nih DOT gov> <0C260F619E428642BFA6380177C3ADF30472ADCC AT exmsea005 DOT us DOT wamu DOT net> <20061210062119 DOT GA15846 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20061210062119.GA15846@trixie.casa.cgf.cx>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sun, Dec 10, 2006 at 01:21:19AM -0500, Christopher Faylor wrote:
>On Sat, Dec 09, 2006 at 11:31:05AM -0800, Karr, David wrote:
>>If the point of this note is to get your pipeline to work, would it help
>>if you added something like "-n 30" to the xargs command?  This should
>>execute one instance of 'grep -l -e "error '1234567890'"' for every 30
>>lines of output from the previous pipe entry.
>>
>>	$ echo path/* | \
>>		tr ' ' '\n' | \
>>		grep -v -e '\*' | \
>>		xargs -r grep -l -e "error '1234567890'" | \
>>		rest_of_pipe 
>
>I'm sure that the point of the note was to report a Cygwin bug.

...but I can't duplicate this with the latest snapshot...

cgf

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019