Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-26 Thread Kirk Strauser
At 2002-12-25T14:02:07Z, "Bill Moran" <[EMAIL PROTECTED]> writes: > Ahhh ... so (making sure to understand this information so I can use it > again later) the quotes tell find to expand the pattern, without quotes > the shell tries to do it and results in the mentioned error. That's exactly corr

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-26 Thread Dirk-Willem van Gulik
On Tue, 24 Dec 2002, Bill Moran wrote: > other way of overcoming this limit? find . -name "*.html" | xargs grep someting Dw To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Bill Moran
From: [EMAIL PROTECTED] (Gary W. Swearingen) > > find . -name '*.html' -print | xargs grep __FILE__ One might as well get in the habit of using the more robust find . -name '*.html' -print0 | xargs -0 grep __FILE__ Otherwise, the "-print" isn't needed at all; it's a default. Very true.

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Gary W. Swearingen
> > find . -name '*.html' -print | xargs grep __FILE__ One might as well get in the habit of using the more robust find . -name '*.html' -print0 | xargs -0 grep __FILE__ Otherwise, the "-print" isn't needed at all; it's a default. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubs

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread parv
in message <[EMAIL PROTECTED]>, wrote Bill Moran thusly... > > >From: Shantanu Mahajan <[EMAIL PROTECTED]> > the wildcard, thus the limit doesn't affect the command. > > >or maybe you can use "locate" > > Hadn't thought to try that, although I don't know how it would > work. RTFM? locate(1)? gi

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Bill Moran
From: Shantanu Mahajan <[EMAIL PROTECTED]> +++ Bill Moran [freebsd] [24/12/02 17:25 -0500]: | 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 to

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Shantanu Mahajan
+++ Bill Moran [freebsd] [24/12/02 17:25 -0500]: | 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__ *

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Bill Moran
From: Greg 'groggy' Lehey <[EMAIL PROTECTED]> On Tuesday, 24 December 2002 at 17:25:23 -0500, 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 doc

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Jonathan Chen
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, i

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Cliff Sarginson
On Tue, Dec 24, 2002 at 05:52:15PM -0500, Bill Moran wrote: > >From: paul beard <[EMAIL PROTECTED]> > > > >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 t

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Greg 'groggy' Lehey
On Tuesday, 24 December 2002 at 17:25:23 -0500, 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 se

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Kurt Bigler
on 12/24/02 2:52 PM, Bill Moran <[EMAIL PROTECTED]> wrote: >> From: paul beard <[EMAIL PROTECTED]> >> >> 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 t

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Bill Moran
From: paul beard <[EMAIL PROTECTED]> 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 h

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread paul beard
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__ does

Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Bill Moran
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 __FI