Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2007 11:24:08 +0200
From:      Nikos Vassiliadis <nvass@teledomenet.gr>
To:        freebsd-questions@freebsd.org
Cc:        VeeJay <maanjee@gmail.com>
Subject:   Re: Is there a way to get List of Only those files in a filesystem which are modified on a specifict date?
Message-ID:  <200701111124.09298.nvass@teledomenet.gr>
In-Reply-To: <2cd0a0da0701110045x49c8fc90g8174dd12d0d90325@mail.gmail.com>
References:  <2cd0a0da0701110045x49c8fc90g8174dd12d0d90325@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 11 January 2007 10:45, VeeJay wrote:
> Hi
> 
> Is there a way to get List of Only those files in a filesystem which are
> modified on a specifict date?
> 

Yes, read find(1) man.

In short:
find ${DIRECTORY} -mtime 8
This will give you the files which were modified 8 days before
in directory ${DIRECTORY}.

find ${DIRECTORY} -mtime -8
This will give you the files which were modified 8 days ago
and afterwards in directory ${DIRECTORY}.

There is also -newerXY option which might be interesting.

HTH, Nikos



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