Re: delelte dirs older than 2 hours by find with solaris 9
- From: Darren Dunham <ddunham@xxxxxxxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 20:46:45 GMT
Frank Schmitz <AXHLTVXKGKBF@xxxxxxxxxxxxx> wrote:
Hi!
I run Solaris 9 and want to delete some directories older than 2
hours. Like this:
find /MYDIR/ -name "MYPATTERN" -type d -mmin +120 -exec rm -R {} \;
But there ist no option like "mmin" in Solaris 9, I can only select
files older than whole days by "-mtime", but not by hours.
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.
--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.
- Follow-Ups:
- Re: delelte dirs older than 2 hours by find with solaris 9
- From: Tim Bradshaw
- Re: delelte dirs older than 2 hours by find with solaris 9
- References:
- delelte dirs older than 2 hours by find with solaris 9
- From: Frank Schmitz
- delelte dirs older than 2 hours by find with solaris 9
- Prev by Date: Re: Using SSH and get GUI interface
- Next by Date: Re: delelte dirs older than 2 hours by find with solaris 9
- Previous by thread: Re: delelte dirs older than 2 hours by find with solaris 9
- Next by thread: Re: delelte dirs older than 2 hours by find with solaris 9
- Index(es):