🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #65

Re: Fast Removal

#65
From: kevinl
Date: Tue, 03 Nov 1992 13:40
13 lines
1086 bytes
	I might try something like the following:

	find . -ctime +1 -exec rm {} \;

	This *should* work.  `-ctime' is for `create time', so the previous
command should find all files with a create time greater than (from the `+')
today.  If you wanted to remove all files not modified today, you could use
the `-mtime' primary.  For both of these the argument is given in days, and
if you precede the argument with a `+' it means greater than, and a `-'
means less than.  No `+' or `-' means exactly `x'.

	Hope this helps.
Technical Details
Message-ID: <28300007@tisdec.tis.tandy.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!uvaarpa!darwin.sura.net!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!eff!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
References: <28509@polari>

Show Full Headers
Complete Article Headers
From: kevinl@tisdec.tis.tandy.com
Date: 03 Nov 92 07:40 CST
Newsgroups: comp.unix.shell
Subject: Re: Fast Removal
Message-ID: <28300007@tisdec.tis.tandy.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!uvaarpa!darwin.sura.net!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!eff!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
Nf-ID: #R:polari:28509:tisdec.tis.tandy.com:28300007:000:518
Nf-From: tisdec.tis.tandy.com!kevinl    Nov  3 07:40:00 1992
References: <28509@polari>
Lines: 14