Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2002 18:59:04 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Bill Moran <bill_moran2@hotmail.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Argument list too long: limitation in grep? bash? FreeBSD?
Message-ID:  <20021225055904.GA3877@grimoire.chen.org.nz>
In-Reply-To: <F75NOUivlQoMuDGzxTs0003baec@hotmail.com>
References:  <F75NOUivlQoMuDGzxTs0003baec@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 24, 2002 at 05:25:23PM -0500, Bill Moran wrote:

[...]
> Is this a shortcoming of bash, grep or FreeBSD?  I'm assuming
> it's not grep, as the command:
> find . -name *.html -print | xargs grep __FILE__
> yeilds:
> -bash: /usr/bin/find: Argument list too long

If you quote the *.html, ie:

    find . -name '*.html' -print | xargs grep __FILE__

this will avoid the arg-list too long problem.
-- 
Jonathan Chen <jonc@chen.org.nz>
-----------------------------------------------------------------------
"I love deadlines. I like the whooshing sound they make as they fly by"
                                                        - Douglas Adams

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021225055904.GA3877>