Re: delelte dirs older than 2 hours by find with solaris 9



On 2006-11-27 20:46:45 +0000, Darren Dunham <ddunham@xxxxxxxxxxxxxxxx> said:

Even if you don't have access to a 'find' that accepts minutes, you can
use 'touch' to create a file of the correct age. Then use find -newer
(or ! -newer) to select files newer or older than that point in time.

Now that is a really neat trick. Do you know (could be easily checked obviously but I'm not near a Solaris box that is on) if it is smart enough not to stat the file repeatedly?

--tim


.