Re: [Nolug] Getting rid of old files

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Sun, 25 Jan 2004 12:32:48 -0600
Message-Id: <1075055568.26339.12.camel@haggis.homelan>

On Sun, 2004-01-25 at 10:34, Petri Laihonen wrote:
> A while back I saw a one line command of deleting files based on the age of
> the file. I don't remember whether it was on the list, or somewhere on the
> web. This morning I tried to find one from the web, but yielded only
> scripts. I'd prefer the one liner.
>
> Anybody remember if it was on the list (which post?), or if somebody could
> post an example of this sort of command combination?

The VMS DELETE command has this option:
$ DELE/BEFORE="15-JAN-2004 18:05" *.FOO

Is that something like what you want?

-- 
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA
"Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible,
you are, by definition, not smart enough to debug it."
Brian W. Kernighan
___________________
Nolug mailing list
nolug@nolug.org
Received on 01/25/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST