# RbFind 1.1

**URL:** <https://www.ruby-forum.com/t/rbfind-1-1/155984>\
**Category:** Ruby\
**Created:** [December 19, 2008, 12:15am UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984 "2008-12-19T00:15:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bertram\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Post date:** [December 19, 2008, 12:15am UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984/1 "2008-12-19T00:15:43Z")

</div>

Hi,

yet another find tool: [http://raa.ruby-lang.org/project/rbfind](http://raa.ruby-lang.org/project/rbfind).  
Hope you enjoy it. Seek and ye shall find.

Bertram

---

<div class="post-metadata">

**Author:** ![Bertram\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Post date:** [December 22, 2008, 9:51am UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984/2 "2008-12-22T09:51:21Z")

</div>

wow looks cool.

c:\dev\>gem install rbfind  
ERROR: could not find gem rbfind locally or in a repository

c:\dev\>

---

<div class="post-metadata">

**Author:** ![Bertram\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Post date:** [December 22, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984/3 "2008-12-22T13:15:44Z")

</div>

Hi Roger,

Am Montag, 22. Dez 2008, 17:42:52 +0900 schrieb Roger P.:

> c:\dev\>gem install rbfind  
> ERROR: could not find gem rbfind locally or in a repository

Did you specify the source I provide?

c:\> gem sources  
c:\> gem install --source [http://gems.bertram-scharpf.de](http://gems.bertram-scharpf.de) rbfind

Bertram

---

<div class="post-metadata">

**Author:** ![Bertram\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Post date:** [December 22, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984/4 "2008-12-22T23:15:29Z")

</div>

Hi,

Am Montag, 22. Dez 2008, 23:00:27 +0900 schrieb Roger P.:

> > c:\> gem install --source [http://gems.bertram-scharpf.de](http://gems.bertram-scharpf.de) rbfind
> 
> Colors don’t work on windows currently [have to use win32::console or  
> wirble to colorize on windoze].
> 
> Is there the equivalent of a find --iname feature?

Oops, I totally forgot considering about Windows. Here are two  
workarounds for the -iname feature:

> rbfind -pD ‘(?i:re)’  
> rbfind -p ‘name =~/re/i’

In Version 1.1.1 (now available), the -D option will be case  
insensitive by default for DOSish platforms. Use the workarounds  
the other way round if this behaviour is not intended.

Color support is turned off on Windows now by default. Use the -c  
switch to force it on.

Sorry, but I cannot test the features as I have no Windows running  
here…

Bertram

---

<div class="post-metadata">

**Author:** ![Bertram\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Post date:** [December 22, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984/5 "2008-12-22T15:08:57Z")

</div>

> Did you specify the source I provide?
> 
> c:\> gem sources  
> c:\> gem install --source [http://gems.bertram-scharpf.de](http://gems.bertram-scharpf.de) rbfind

Well I was mostly teasing you for not having deployed it in a way to  
make it standard and easy to install 🙂

Some notes:  
within the --help output might be nice to have more examples, like how  
to actually use the output block.

Colors don’t work on windows currently [have to use win32::console or  
wirble to colorize on windoze].

The main link given is off [has extra \> ?].

A list in the README/docs of the available variables would be nice.

Is there the equivalent of a find --iname feature?  
here’s my one attempt

C:\>rbfind -d \*.rb  
c:/ruby18/lib/ruby/gems/1.8/gems/rbfind-1.1/bin/rbfind:281: (eval):1:  
compile error (SyntaxError)  
(eval):1: syntax error, unexpected ‘.’, expecting ‘=’  
from  
c:/ruby18/lib/ruby/gems/1.8/gems/rbfind-1.1/lib/rbfind.rb:540:in `call' from c:/ruby18/lib/ruby/gems/1.8/gems/rbfind-1.1/lib/rbfind.rb:540:in `do\_level\_depth’  
from c:/ruby18/lib/ru

Anyway looks good and thanks.  
-=r
