Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-09 Thread Jeroen Roovers
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

[gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-09 Thread Diego 'Flameeyes' Pettenò
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

Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Donnie Berkholz
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

Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Jan Kundrát
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

Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Alin Năstac
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

[gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Diego 'Flameeyes' Pettenò
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

[gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Diego 'Flameeyes' Pettenò
"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

Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Chip Parker
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

Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Alin Năstac
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

[gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-08 Thread Diego 'Flameeyes' Pettenò
"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

[gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat

2008-06-07 Thread Michael Sterrett -Mr. Bones.-
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]