[clue-tech] Linux desktop search

Angelo Bertolli angelo at freeshell.org
Wed Jan 5 09:47:06 MST 2005


Keith Hellman wrote:

>On Wed, Jan 05, 2005 at 06:46:58AM -0700, Collins Richey wrote:
>  
>
>>On Tue, 4 Jan 2005 22:13:15 -0700, Jeff Cann <j.cann at isuma.org> wrote:
>>    
>>
>>>-----BEGIN PGP SIGNED MESSAGE-----
>>><snip>
>>>
>>>$ find . -exec grep 'string to find' {} \; -print
>>></snip>
>>>      
>>>
>>Always a fan of simplicity, what does the find expression give you
>>that this does not?
>>
>>     grep -R 'string to find' * 
>>
>>    
>>
>The difference would be that the grep invokation would not find a 
>target file if it were in a 'hidden' directory of the invokation
>directory.  The '*' would be expanded by shell and miss it.
>
>  grep -R 'string to find' .
>
>would, AFAICT, produce the same results as Jeff's find.
>
>Sorry, it was a really nit-picky thing.  But then nit-picky is what I do
>best :^)
>  
>

Please everyone, if you're not using regular expressions, use fgrep.

(talk about nit-picky)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue-tech/attachments/20050105/17337751/attachment.html


More information about the clue-tech mailing list