Directory clean up

I want to write a script in ksh that will delete file that are more than 2 weeks old.

man find
man rm
man xargs ( if required )

cheers
ZB

If you are on windows then go to regedit and clear the cache.

Hmm. Two things wrong here. Firstly, the OP has posted this in the AIX forum, therefore you'd expect him/her to be having a problem with an AIX system. Also, the OP is using ksh (the Korn Shell), and my post is factually correct in that a solution can be formed from the find (with atime, ctime or mtime used as appropriate), rm and (if there are a lot of files) xargs commands. I have directed the OP towards the appropriate manpages so that they can research the solution themselves. But the command required would be something like

find /somedir -mtime +14 | xargs rm

Secondly (and as off-topic as it is), there is no cache in the Windows registry. These are primarily UNIX boards, although there is a forum for the discussion of Windows and DOS topics which can be reached
here .

Cheers
ZB

Thanks everyone. I appreciate your inputs.