A simple find [path] will work recursively.
On Wed, 6 Dec 2000, Steve Lee wrote:
> how do i tell it to do the directories recursive.
> it seems to leave out the directory and the files
> it them.
>
>
> On Wed, 6 Dec 2000, Vidiot wrote:
>
> > >find [directory path] -ctime 15 -print
> > >
> > >This will get any file changed in the over 15 days ago. If you want
> > >accessed try atime instead. If you want modified change this to mtime.
> >
> > Not only will it find files, it will find directories that are of that
> > age. He only wanted files, so do the following:
> >
> > find <path> -ctime 15 -type f
> >
> > The -print is not needed.
> >
> > To also delete the files, do this:
> >
> > find <path> -ctime 15 -type f -print -exec rm {} \;
> >
> > It will only find files, print the list and remove them.
> >
> > Don't do the -exec part until you've run some tests are are satisfied with
> > the results.
> >
> > MB
> >
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
--
-Statux
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list