Well damn, looks like my wife is right... I are 'tarded. :-)
Thanks Rick. This was a big help!
Mike
----- Original Message -----
From: "Rick Warner" <[EMAIL PROTECTED]>
> On Tue, 2003-08-05 at 09:52, Mike McMullen wrote:
> > Ok maybe the diet coke and sugar wafers haven't kicked
> > or maybe I are 'tarded. (My wife leans towards the latter
> > most days.) but I can't figure out a way to get find to show
> > me files that haven't been modified in the last 30 days.
> >
> > Can someone give me the magic incantation. I use it for
> > tons of other stuff but can't see how it can used for this.
> >
> > I want to find files that haven't been modified for 30 days
> > and move them to an "On-Hold" directory.
> >
> > Any help appreciated.
> >
>
> Two ways:
>
> find /mydir ! -mtime -30 -print
> find /mydir -mtime +30 -print
>
> First is find everything in which modified time is not (!) in the last
> 30 days (-30). Second is find everything where modified time is more
> than 30 days (+30). Both should return +/- same result.
>
> Putting latter with a move:
>
> find /mydir -mtime +30 -exec mv {} /holddir \;
>
> - rick
>
>
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list