>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
--
e-mail: [EMAIL PROTECTED]
Bart: Hey, why is it destroying other toys? Lisa: They must have
programmed it to eliminate the competition. Bart: You mean like
Microsoft? Lisa: Exactly. [The Simpsons - 12/18/99]
Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN)
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list