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
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
>
> 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"
__
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,
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
> "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. -
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