xargs still nok?

Public Mailing Lists lists@lists.cichon.com
Thu Sep 8 12:23:00 GMT 2005


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/



More information about the Cygwin mailing list