Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2010 12:37:13 +0300
From:      Eitan Adler <lists@eitanadler.com>
To:        Steve Bertrand <steve@ipv6canada.com>
Cc:        "questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: Find a file with an unknown name
Message-ID:  <AANLkTikYjSrAn3FRaX47ctX5P_CPgbZFdTu98G2byihW@mail.gmail.com>
In-Reply-To: <4BF1F84F.1000700@ipv6canada.com>
References:  <4BF1F84F.1000700@ipv6canada.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I want to find a file that was recently created.

find <dir> -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" <dir>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikYjSrAn3FRaX47ctX5P_CPgbZFdTu98G2byihW>