Re: Finding files containing 'string'

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

 



On Wed, Feb 01, 2006 at 04:22:07PM -0500, CodeHeads wrote:
> On Wed, 2006-02-01 at 20:49 +0000, Anne Wilson wrote:
> > On Wednesday 01 Feb 2006 20:41, CodeHeads wrote:
> > >
> > > How about this:
> > >
> > > $du -a <PATH> | grep <FILE>
> > >
> > > This works well for me.
> > 
> > That returns files with the string in the name, I believe.  I need files 
> > with the string in the body.
> > 
> > Anne
> 
> oooppss sorry Anne :)  I was confused. LOL
> -- 
I had two suggestions:
1. gnome-search-tool
2. find ./ -name "*" -exec grep "string" {} /dev/null \;

Someone suggested even a better command solution than 2. above but I
can't remember what it is.
-- 

=======================================================================
"Say yur prayers, yuh flea-pickin' varmint!"
-- Yosemite Sam
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
telephone: (210)-999-7484


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

  Powered by Linux