Re: delelte dirs older than 2 hours by find with solaris 9
- From: thogard@xxxxxxxxxxxx (Tim Hogard)
- Date: Mon, 27 Nov 2006 15:29:51 +0000 (UTC)
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.
:
: Is there someting like "gnu-find" I can use oder another way to
: select files accessed some hours ago?
Some finds (from pres SYS V days) are happy with floating point
values for times that reduce to integers in seconds....
find .... -atime +.083333
-tim
http://web.abnormal.com
.
- 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: Determining the UNIX flavour and version from netboot filesets
- Next by Date: Re: RSC on ultra 60
- 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):
Relevant Pages
|