develooper Front page | perl.ppt | Postings from February 2006

Re: regarding mtime

Thread Previous | Thread Next
From:
David Dyck
Date:
February 24, 2006 14:20
Subject:
Re: regarding mtime
Message ID:
Pine.LNX.4.62.0602241417380.13868@dd.tc.fluke.com

On Thu, 23 Feb 2006 at 22:16 -0800, Sriram Narayanan <sriram_psg2002@yahoo....:

> I am using ppt in my windows box . When i tried to use "mtime" option
> in "find" command i could only specify the units as days but i want to
> specify the mtime units as hours.
>
> eg: find  /  -mtime  -1
>
> this searches for the files modified in the last "1 day"  but i want the
> files modified in the last "one hour" . So how to enable this option to
> specify the time units in hours.

Since ppt's find is a wrapper around find2perl try this to get
files modified in the last 1 hour.

  find / -eval '-M _ < 1/24' -print


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About