Article View: comp.unix.programmer
Article #41Re: Fast Removal
From: Tom Christiansen
Date: Tue, 03 Nov 1992 01:13
Date: Tue, 03 Nov 1992 01:13
13 lines
1254 bytes
1254 bytes
From the keyboard of errant@polari.online.com:
:In C, how would I quickly remove all files that were not created today??
main() {
system("find . -mtime +1 -exec /bin/rm -f {} \\;");
}
--tom
--
Tom Christiansen tchrist@convex.com convex!tchrist
"...this does not mean that some of us should not want, in a rather
dispassionate sort of way, to put a bullet through csh's head."
Larry Wall in <1992Aug6.221512.5963@netlabs.com>
Technical Details
Message-ID:
<1992Nov3.011322.5994@news.eng.convex.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!cs.widener.edu!eff!news.oc.com!convex!tchristReferences:
<1992Nov2.131951.27830@polari>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!cs.widener.edu!eff!news.oc.com!convex!tchrist
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Fast Removal
Originator: tchrist@pixel.convex.com
Sender: usenet@news.eng.convex.com (news access account)
Message-ID: <1992Nov3.011322.5994@news.eng.convex.com>
Date: Tue, 3 Nov 1992 01:13:22 GMT
Reply-To: tchrist@convex.COM (Tom Christiansen)
References: <1992Nov2.131951.27830@polari>
Nntp-Posting-Host: pixel.convex.com
Organization: Convex Computer Corporation, Colorado Springs, CO
Keywords: Fast Removal
X-Disclaimer: This message was written by a user at CONVEX Computer
Corp. The opinions expressed are those of the user and
not necessarily those of CONVEX.
Lines: 13