Script for parsing directories one level and finding directories older than n days

Hello all,

Here's the deal...I have one directory with many subdirs and files.

What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file.

A script for this would be great when/if anyone has the time for it.

TIA

Check the man page for find. Have a look at the option -mtime. Test it out and if you get stuck at a particular thing, ask again.

Checked the man for find...the thing is there are a lot of subdirs under the initial dir and find will look at all of them taking a lot of time and returning much more info than needed.
I'm only looking for one level from the initial dir...

use the option : -maxdepth 1

ex : find . -maxdepth 1 -mtime +n

Oh, that is great stuff! Looks like I missed it... Will give it a try and let you know how it goes. Thanks so much!

---------- Post updated at 10:15 AM ---------- Previous update was at 09:21 AM ----------

No...I didn't miss -maxdepth. It's just not there. I cannot install anything on the server as I'm not the admin. OS is Solaris 10. Any other ideeas?
Thx.

find . ! -name . -prune -mtime N