On Tue, 20 Feb 2001, Mikkel L. Ellertson wrote:
> On Tue, 20 Feb 2001, Kevin Wood wrote:
>
> > Hey there,
> >
> > I was wondering if anyone knew of a good command that would help me
> > determine if a file was older than a specified date. The reason I need
> > this is that I am doing some botched versioning control and I need to move
> > files that are dated older than 30 days off to another directory. Does
> > someone have a script or a good command to do this?
> >
> > Any help would be greatly appreciated.
> >
> > Thanks
> >
> > Kevin
> >
> You may want to look at the find command. "man find" or "info find".
>
> "find -mtime +30" will probably list the file you want.
you should probably be more specific about what you mean by "older
than 30 days", since linux files keep track of three different
timestamps. as mikkel suggested, "man find", and check out
the search criteria atime, mtime and ctime.
rday
--
Robert P. J. Day
Eno River Technologies, Durham NC
Unix, Linux and Open Source training
"This is Microsoft technical support. How may I misinform you?"
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list