Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2002 14:42:38 -0800
From:      paul beard <paulbeard@mac.com>
To:        Bill Moran <bill_moran2@hotmail.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Argument list too long: limitation in grep? bash? FreeBSD?
Message-ID:  <3E08E2DE.3080102@mac.com>
References:  <F75NOUivlQoMuDGzxTs0003baec@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Moran wrote:
> d/l the entire php documentation as individual html files.
> This equates to a LOT of files in a single directory (how can
> I get a count of this?)
> Anyway, I'm trying to find the docs on some features that
> the www.php.net's search isn't really helping on (searching
> for __FILE__ doesn't search for __FILE__ ... it searches for
> file, and there's too many results) so I try:
> grep __FILE__ *.html
> and I get the error:
> -bash: /usr/bin/grep: Argument list too long
> 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

try grep "__FILE__" *.html.

to get a file coun, 'ls | wc' might work.
-- 
Paul Beard: seeking UNIX/internet engineering work
<http://paulbeard.no-ip.org/paulbeard.html>;
8040 27th Ave NE Seattle WA 98115 / 206 529 8400

Love and scandal are the best sweeteners of tea.


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?3E08E2DE.3080102>