* bc pt II
@ 2002-07-12 18:21 E. Richard Glazier
0 siblings, 0 replies; only message in thread
From: E. Richard Glazier @ 2002-07-12 18:21 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-12 18:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-12 18:21 bc pt II E. Richard Glazier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox