X-Spam-Check-By: sourceware.org Date: Wed, 13 Dec 2006 18:37:09 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: xargs gives grep/gawk too much Message-ID: <20061213233709.GA13363@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20061210063339 DOT GB15846 AT trixie DOT casa DOT cgf DOT cx> <31DDB7BE4BF41D4888D41709C476B657041694B6 AT NIHCESMLBX5 DOT nih DOT gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31DDB7BE4BF41D4888D41709C476B657041694B6@NIHCESMLBX5.nih.gov> User-Agent: Mutt/1.5.11 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 On Wed, Dec 13, 2006 at 02:17:56PM -0500, Buchbinder, Barry (NIH/NIAID) [E] wrote: >Christopher Faylor wrote on Sunday, December 10, 2006 1:34 AM: >>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... I wasn't paying close attention to this thread but just in case there was some misinformation here: you have to mount the directory with -X in order to reap the benefit of cygwin's argument handling. Otherwise, you are limited to <32K command line sizes. And, as I said, I could't duplicate Eric's problem with the current 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/