From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "E. Richard Glazier" Newsgroups: gmane.os.tru64.managers Subject: bc pt II Date: Fri, 12 Jul 2002 18:21:44 +0000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: main.gmane.org 1026499269 14980 127.0.0.1 (12 Jul 2002 18:41:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2002 18:41:09 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17T5Lo-0003tS-00 for ; Fri, 12 Jul 2002 20:41:09 +0200 Original-Received: (qmail 12336 invoked by uid 5); 12 Jul 2002 18:21:50 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12328 invoked from network); 12 Jul 2002 18:21:50 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 12 Jul 2002 18:21:50 -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 <0GZ500C1HF0DVK@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 12 Jul 2002 14:21:50 -0400 (EDT) Original-Received: from hotmail.com (f28.law4.hotmail.com [216.33.149.28]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZ500A5HF09T6@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 12 Jul 2002 14:21:45 -0400 (EDT) Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 12 Jul 2002 11:21:44 -0700 Original-Received: from 63.93.126.51 by lw4fd.law4.hotmail.msn.com with HTTP; Fri, 12 Jul 2002 18:21:44 +0000 (GMT) X-Originating-IP: [63.93.126.51] Original-To: tru64-unix-managers@ornl.gov X-OriginalArrivalTime: 12 Jul 2002 18:21:44.0958 (UTC) FILETIME=[FA5499E0:01C229D0] Xref: main.gmane.org gmane.os.tru64.managers:957 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:957 Thanks for people's input. My situation has changed a little, and maybe I'm barking up the wrong tree anyway. In short, is there any way to remove files by date (hour)? I have files in a /tmp directory that I want removed if they are two hour (or more) old. I couldn't find a find expression by hour, or anything for remove. Right now I've been trying to write a script to ls -l /tmp, sort it by date (time), awk that column, cut just the hour and somehow compare it against the current date (with just the hour cut out) and act on it- i.e. remove it if it's to hours old. There *has* to be a better way :) If anyone is so inclined, feel free to input. Thanks again Rich Rich _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com