in reply to Easy way to Remove Files if match condition time?

To emphasize on the use of stat. You could get the epoch of the creation time of the file by doing:
#>stat -s FILE | awk '{print $11}' | sed "/.*=/s///"
that was my first attempt at sed, be gentle. You get the idea though.

or in perl:
if (-M FILE > 1) { unlink FILE; }
Where 1 == one 24 hour day. If you wanted 12 hours -- it would be 0.5. Have Fun.

Justin

Replies are listed 'Best First'.
Re^2: Easy way to Remove Files if match condition time?
by EchoAngel (Pilgrim) on Feb 04, 2005 at 23:07 UTC
    thank you so much!!