On Sun, 8 Jun 2008 06:44:59 -0700
"Chip Parker" <[EMAIL PROTECTED]> wrote:
> Although it'll be a bit slower than a direct grep: for m in `find
> /usr/portage -name metadata.xml `; do grep -Rn foo $m;done
That would be horribly slow by comparison. :)
Kind regards,
JeR
--
gentoo-dev@lists.g
Donnie Berkholz <[EMAIL PROTECTED]> writes:
> I usually do something like this:
I used to do that too, but it's quite slower than the */*/$blah, because
it has to visit all the directories on the grep.
Give it a try, took me quite a while to get used to it but it works
nicely.
--
Diego "Flamee
On 14:26 Sun 08 Jun , Diego 'Flameeyes' Pettenò wrote:
> "Michael Sterrett -Mr. Bones.-" <[EMAIL PROTECTED]> writes:
>
> > The tree's small enough that grep -r gives enough performance.
>
> Even better
>
> grep */*/metadata.xml
>
> the tree is not big enough that it exceeds the maximum argu
Alin Năstac wrote:
I remember that one time I had to split a command like dohtml
"${S}"/something/*.{png,html} because the line was too long. At that
time, bash had a limit of 32K. Now is what ... 1M?
from execve(2):
Limits on size of arguments and environment
Most Unix implementations impo
Diego 'Flameeyes' Pettenò wrote:
Alin Năstac <[EMAIL PROTECTED]> writes:
According to my local copy, we have 12876 metadata.xml files.
Something tells me that your command line will exceed the maximum
command line length supported by any shell ;)
I actually checked before saying that
Alin Năstac <[EMAIL PROTECTED]> writes:
> According to my local copy, we have 12876 metadata.xml files.
> Something tells me that your command line will exceed the maximum
> command line length supported by any shell ;)
I actually checked before saying that :) Both zsh and bash on my system
can g
"Chip Parker" <[EMAIL PROTECTED]> writes:
> Although it'll be a bit slower than a direct grep: for m in `find
> /usr/portage -name metadata.xml `; do grep -Rn foo $m;done
Uh no you want xargs in that case.
--
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/
pgpeHdSVH8uGY.pgp
Description: P
On Sun, Jun 8, 2008 at 5:41 AM, Alin Năstac <[EMAIL PROTECTED]> wrote:
> Diego 'Flameeyes' Pettenò wrote:
>>
>> "Michael Sterrett -Mr. Bones.-" <[EMAIL PROTECTED]> writes:
>>
>>
>>>
>>> The tree's small enough that grep -r gives enough performance.
>>>
>>
>> Even better
>>
>> grep */*/metadata.xml
Diego 'Flameeyes' Pettenò wrote:
"Michael Sterrett -Mr. Bones.-" <[EMAIL PROTECTED]> writes:
The tree's small enough that grep -r gives enough performance.
Even better
grep */*/metadata.xml
the tree is not big enough that it exceeds the maximum arguments from bash.
According to
"Michael Sterrett -Mr. Bones.-" <[EMAIL PROTECTED]> writes:
> The tree's small enough that grep -r gives enough performance.
Even better
grep */*/metadata.xml
the tree is not big enough that it exceeds the maximum arguments from bash.
--
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/
p
On Sun, 8 Jun 2008, Alin N�~Cstac wrote:
glimpse can be used to search stuff in all metadata.xml files.
The tree's small enough that grep -r gives enough performance.
Michael Sterrett
-Mr. Bones.-
[EMAIL PROTECTED]
11 matches
Mail list logo