[racket-dev] full tree text search

From: Jakub Piotr Cłapa (jpc-ml at zenburn.net)
Date: Thu Dec 9 05:17:28 EST 2010

On 09.12.10 07:19, Jon Rafkind wrote:
> On 12/08/2010 10:12 PM, Eli Barzilay wrote:
>> Is this different from a recursive grep?
>>
>> (See also `git grep' -- and there's a web interface for that,
>> http://git.racket-lang.org//plt?a=search&h=HEAD&st=grep&s=foo )
>>
>
> Oh I had no idea git grep existed. Well that looks good enough for now.
>
> (BTW, recursive grep on the command line is not so trivial..
> $ find . -name "*.rkt" | xargs grep foo
> )

You may also try ack:
http://betterthangrep.com/

It automaticaly does recursive search and ommits repository directories 
and other useless files.

It needs a config file entry for Racket though (.ackrc):
--type-set
racket=.rkt,.scrbl,.ss,.scm

Usage:
ack foo

-- 
regards,
Jakub Piotr Cłapa


Posted on the dev mailing list.