[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] xargs fails with "grep: Invalid argument"

From: Gary Oberbrunner
Subject: Re: [h-e-w] xargs fails with "grep: Invalid argument"
Date: Thu, 29 Jul 2010 09:11:53 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20081218 Lightning/1.0pre Shredder/3.0b2pre Mnenhy/

On 7/29/2010 8:59 AM, egarrulo wrote:

> find . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path
> "*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" -o -path
> "*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -path "*/{arch}" ")"
> -prune -o  -type f "(" -iname "*.el" ")" -print0 | xargs -0 -e grep
> -nH -e "REDEFINED"
> xargs: grep: Invalid argument

I don't think you should be passing "-e" to xargs like that.  -e is the
eof-char arg for xargs.

-- Gary

reply via email to

[Prev in Thread] Current Thread [Next in Thread]