Re: finding files modified yesterday

From: Liddle Craig - cliddl (CLIDDL@ACXIOM.CO.UK)
Date: Tue Dec 10 2002 - 10:11:24 EST


if you've got gnu find then there is an option "-daystart" which checks from
the begining of today (0:00)

so

find <somewhere> -daystart -mtime 1

will hopefully give you what you want

Craig

-----Original Message-----
From: Holger.VanKoll@SWISSCOM.COM [mailto:Holger.VanKoll@SWISSCOM.COM]
Sent: 10 December 2002 14:38
To: aix-l@Princeton.EDU
Subject: finding files modified yesterday

Hello,

I need to find all files in /somewhere that have been modified yesterday.

So far I use touch -t todays_date_0:00 /tmp/timestamp and find -new
/tmp/timestamp to find all files modified earlier than today.

How can I filter out the files modified 2,3,4... days before?
I should have a way that does not rely on certain TZ or LC* settings.

Regards,

Holger

*********************************************************************

The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:24 EDT