delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <4320281B.6090005@lists.cichon.com> |
Date: | Thu, 08 Sep 2005 14:01:31 +0200 |
From: | Public Mailing Lists <lists AT lists DOT cichon DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: xargs still nok? |
References: | <on00i11u7d2a93lkl1hu98sav3kvi0c5cj AT 4ax DOT com> <20050908102658 DOT GC5555 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20050908102658.GC5555@calimero.vinschen.de> |
X-IsSubscribed: | yes |
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 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |