Re: Finding files containing 'string'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-02-01 at 19:12 +0000, Andy Green wrote:
> 
> Yep youthinks right.  The problem is in the glob expansion rather than
> grep then because the first recipe does find the .file for me too.  Hm
> that makes a lot of sense because I noticed this when I saw grep was not
> descending into ~/.blah/ when given
> 
> cd ~
> grep stuff * -R
> 
> of course
> 
> echo *
> 
> doesn't show .files either.

See the "dotglob" option in the bash manpage.

> 
> >     My favorite..
> > 
> > find . -print | xargs grep -i <string>
> > 
> >     Slower, but in my experince, pretty bulletproof.

Yep - this is my favourite also.

Cheers, Ben


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux