Article View: comp.unix.programmer
Article #48Re: Fast Removal
From: Kenneth Edwards 268-6500
Date: Tue, 03 Nov 1992 18:56
Date: Tue, 03 Nov 1992 18:56
15 lines
1140 bytes
1140 bytes
In article <1992Nov3.011322.5994@news.eng.convex.com> tchrist@convex.COM (Tom Christiansen) writes:
>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 {} \\;");
>}
Well he did ask for Fast Removal, so wouldn't
main(){ system("find . -mtime +1 -print | xargs rm -f"); }
be faster ?
--
_____________________________________________________________________________
Feeling amorous, she looked under the sheets and cried, OH NO it's micro soft
Technical Details
Message-ID:
<1992Nov3.185624.8413@cuug.ab.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cuugnet!edwardskReferences:
<1992Nov2.131951.27830@polari> <1992Nov3.011322.5994@news.eng.convex.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cuugnet!edwardsk From: edwardsk@cuug.ab.ca (Kenneth Edwards 268-6500) Subject: Re: Fast Removal Message-ID: <1992Nov3.185624.8413@cuug.ab.ca> Keywords: Fast Removal Organization: Calgary UNIX Users' Group References: <1992Nov2.131951.27830@polari> <1992Nov3.011322.5994@news.eng.convex.com> Date: Tue, 3 Nov 1992 18:56:24 GMT Lines: 17