in reply to Easy way to Remove Files if match condition time?
that was my first attempt at sed, be gentle. You get the idea though.#>stat -s FILE | awk '{print $11}' | sed "/.*=/s///"
Where 1 == one 24 hour day. If you wanted 12 hours -- it would be 0.5. Have Fun.if (-M FILE > 1) { unlink FILE; }
|
|---|
| 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 |