Is there a way to get List of Only those files in a filesystem which are modified on a specifict date?

Nikos Vassiliadis nvass at teledomenet.gr
Thu Jan 11 10:05:49 UTC 2007


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


More information about the freebsd-questions mailing list