[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 Flameeyes Pettenò
http://blog.flameeyes.eu/


pgpG5kcB0pK0f.pgp
Description: PGP signature


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.gentoo.org mailing list



[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/


pgpQqdIwTnEXe.pgp
Description: PGP signature


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 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 ;)




signature.asc
Description: OpenPGP digital signature


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

 the tree is not big enough that it exceeds the maximum arguments from
 bash.



 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 ;)



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


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 arguments from bash.

I usually do something like this:

  grep -r --include='metadata.xml' -e TOKEN

It also works nicely for `--include='*.ebuild'`.

Thanks,
Donnie
-- 
gentoo-dev@lists.gentoo.org mailing list



[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]