[SunHELP] Quick script

Chris Pinnock cjep at fawlty.net
Wed Oct 2 10:29:26 CDT 2002


On Tue, Oct 01, 2002 at 10:10:19AM -0400, Simoncini, Matthew wrote:
> Hi gurus,
> 
> I'm sorry to ask this question, but I don't have the time to investigate
> this myself. I'm looking for a quick script that'll find files older than 30
> days in one directory. The script doesn't need to recurse through any
> subdirectories, just the one that is supplied as an argument.
> 
> If anyone has the scripting know-how, your help is always appreciated.

Use "find":

e.g. find /directory -mtime +30 -print



More information about the SunHELP mailing list