Finding files containing 'string'
akonstam at trinity.edu
akonstam at trinity.edu
Wed Feb 1 22:31:56 UTC 2006
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
More information about the fedora-list
mailing list