Re: Find a file with an unknown name

2010-05-18 Thread Frank Shute
On Mon, May 17, 2010 at 10:15:43PM -0400, Steve Bertrand wrote: > > I want to find a file that was recently created. > > The content within the file is known, so I can grep for that. The > directory structure that contains the file is also known. The filename > is not known. > > What command stri

Re: Find a file with an unknown name

2010-05-18 Thread doug schmidt
On Tue, May 18, 2010 at 5:37 AM, Eitan Adler wrote: >> I want to find a file that was recently created. > > find -newerct '1 hour ago' -print you can also find all files newer than file.txt. find -newer file.txt -print > >> The content within the file is known, so I can grep for that. The >

Re: Find a file with an unknown name

2010-05-18 Thread Eitan Adler
> I want to find a file that was recently created. find -newerct '1 hour ago' -print > The content within the file is known, so I can grep for that. The > directory structure that contains the file is also known. The filename > is not known. grep -R "content" __

Re: Find a file with an unknown name

2010-05-17 Thread Roy Hubbard
Steve Bertrand wrote: I want to find a file that was recently created. The content within the file is known, so I can grep for that. The directory structure that contains the file is also known. The filename is not known. What command string do I use to search a directory structure for a file,

Re: Find a file with an unknown name

2010-05-17 Thread Steve Bertrand
On 2010.05.17 22:17, Randal L. Schwartz wrote: >> "Steve" == Steve Bertrand writes: > > Steve> What command string do I use to search a directory structure for a > file, > Steve> when my search pattern only matches content and not filename? > > grep -r 'pattern here' top-level-dir-here Som

Re: Find a file with an unknown name

2010-05-17 Thread Randal L. Schwartz
> "Steve" == Steve Bertrand writes: Steve> What command string do I use to search a directory structure for a file, Steve> when my search pattern only matches content and not filename? grep -r 'pattern here' top-level-dir-here -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. -

Find a file with an unknown name

2010-05-17 Thread Steve Bertrand
I want to find a file that was recently created. The content within the file is known, so I can grep for that. The directory structure that contains the file is also known. The filename is not known. What command string do I use to search a directory structure for a file, when my search pattern o