Script to Analyze folders and subfolders

I would like to know if there is a script out there that someone may have already written that I can use to analyze folders and sub folders on my AIX system.
It can be in perl or a basic korn script.

Thanks in advance.

Scripts are around that look at many different things. What are you hoping to learn?
-large files
-old files
-files from specific users
etc...

I am looking for a bit of both. Mainly old files. I would like to scan a server to see if there are some files that can be removed from the server. I run weekly backups and if there are some stale files that could be removed from my backups.

Thanks

Have a look at the manpage for the "find" command. It can do all of that and more.

hi,

For example,

if you want to remove the files older than 30 days means ,

find . -mtime +30 -exec rm {}\;

the above command will search for the files in current directory and removes the one which is older than 30 days.

I dont want to remove the files just yet. I just want the output to be generated to a file so I know what to clean up.

Thanks

as it's been previously suggested - look into 'man find'.

oh and dump the output into a csv file.