Date: Tue, 18 May 2010 08:17:55 -0400 From: doug schmidt <douglas.j.schmidt@gmail.com> To: Eitan Adler <lists@eitanadler.com> Cc: "questions@freebsd.org" <questions@freebsd.org>, Steve Bertrand <steve@ipv6canada.com> Subject: Re: Find a file with an unknown name Message-ID: <AANLkTilryx0CYvP8PlBsV-o9NS-jvXZLX8Xzbm7ufEbm@mail.gmail.com> In-Reply-To: <AANLkTikYjSrAn3FRaX47ctX5P_CPgbZFdTu98G2byihW@mail.gmail.com> References: <4BF1F84F.1000700@ipv6canada.com> <AANLkTikYjSrAn3FRaX47ctX5P_CPgbZFdTu98G2byihW@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 18, 2010 at 5:37 AM, Eitan Adler <lists@eitanadler.com> wrote: >> I want to find a file that was recently created. > > find <dir> -newerct '1 hour ago' -print you can also find all files newer than file.txt. find <dir> -newer file.txt -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> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilryx0CYvP8PlBsV-o9NS-jvXZLX8Xzbm7ufEbm>