Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 To: cygwin AT cygwin DOT com From: zzapper Subject: Re: xargs still nok? Date: Thu, 08 Sep 2005 15:29:37 +0100 Lines: 32 Message-ID: References: <20050908102658 DOT GC5555 AT calimero DOT vinschen DOT de> <4320281B DOT 6090005 AT lists DOT cichon DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On Thu, 08 Sep 2005 14:01:31 +0200, wrote: >Corinna Vinschen wrote: > >>On Sep 8 10:26, zzapper wrote: >> >> >>>Hi, >>> >>>GNU xargs version 4.2.25 >>> >>>or more likely am I misusing xargs? >>> >>>$ ls *.cfm */*.cfm */*/*.cfm */*/*/*.cfm | xargs grep -i host >>>bash: /usr/bin/ls: Argument list too long >>> >>> >> ^^^^^^^^^^^^^^^^^ >> Nothing to do with xargs. Use find instead of ls/w wildcards. >> >> >yes, you should rather write >$ find . -name "*.cfm" -print0 | xargs -0 grep -i host Is Xargs still reqd for find . -name '*.cfm' -exec grep -i {} \; -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- 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/