From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tom Linden Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Searching for new files? Date: Mon, 02 Sep 2002 08:24:50 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1030980907 3740 127.0.0.1 (2 Sep 2002 15:35:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2002 15:35:07 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17ltEI-0000yC-00 for ; Mon, 02 Sep 2002 17:35:06 +0200 Original-Received: (qmail 6651 invoked by uid 5); 2 Sep 2002 15:36:33 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6642 invoked by uid 49493); 2 Sep 2002 15:36:33 -0000 Original-Received: from tom@kednos.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. Clear:. Processed in 0.406226 secs); 02 Sep 2002 15:36:33 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 2 Sep 2002 15:36:33 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1T00779I0UTH@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 02 Sep 2002 11:36:32 -0400 (EDT) Original-Received: from freja.kednos.com (freja.kednos.com [206.160.220.7]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H1T0084DI0MKK@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 02 Sep 2002 11:36:23 -0400 (EDT) Original-Received: from unknown.hostname (206.160.220.11) by freja.kednos.com (V5.1-15H, OpenVMS V7.3 Alpha); Mon, 02 Sep 2002 08:36:09 -0700 (PDT) In-Reply-To: Original-To: Tru64 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:1548 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1548 A number of responses all based on, find. Original Question >> Does anyone ahave a method to find all files >> modified or created since or before a certain >> date? > >The easiest way to find all the file that are newer than a certain date is >to touch a file using the -t option to set the date/time and then use the >find command. For example to find all the file that are newer than >9:29pm on >the 1st September, use the following commands: > >touch -t 09012119 timestamp_file > >find /path -newer timestamp_file > >By adding the -type option, the find command can be limited to files, link, >directories, etc. > >If you wish to find files that are older than that date/time, use the >command: > >find /path ! -newer timestamp_file > >Hope this helps, > >Michael Bradford and from Gavin Kreuiter [gavin@dhsolutions.co.za] Two ways, both using find: If you want files newer than a number of days, use: find / -type f -mtime -NUMBER Where NUMBER is the number of 24-houtr periods. For example, finding all files modified in the last 48 hours: find / -type f -mtime -2 Alteratively, use "touch" and the -newer option of find: touch -t 200112312359 ref find / -type f -newer ref --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002