The file's creation date would be the issue here. Essentially, if I were
to copy a file to a directory, it will get a creation date at this
time. 30 days from now, I would like that file moved. Which
option/command sounds the most useful for this situation?
Thanks
Kevin Wood
On Tue, 20 Feb 2001, rpjday wrote:
> 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
>
>
--
Kevin Wood
Globespan, Inc.
1 Griffin Brook Drive
Suite 205
Methuen, MA 01844
978-837-3069 x 111
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list