🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #48

Re: RM LOGIC

#48
From: Randal L. Schwartz
Date: Mon, 02 Nov 1992 21:12
20 lines
1378 bytes
In article <1992Nov2.131722.27419@polari> errant@polari.online.com writes:
   There are many roman roads to the same solution, but what would be the quickest way to remove 
   way to remove all files that were not created today?? 

There is no way to know what files were "created" today, thus your
problem as stated is intractable.

If you mean "modified", something like this will work:

	find /somewhere -mtime +1 -print | xargs rm -f

or safer:

	find2perl /somewhere -mtime +1 -eval unlink | perl

Just another Perl hacker,
--
Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
merlyn@ora.com (semi-permanent) merlyn@reed.edu (for newsreading only)
factoid: "Portland, Oregon, home of the California Raisins and Lone-Star Beer!"
Technical Details
Message-ID: <MERLYN.92Nov2131214@romulus.reed.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!sdd.hp.com!decwrl!usenet.coe.montana.edu!news.u.washington.edu!ogicse!reed!romulus!merlyn
References: <1992Nov2.131722.27419@polari>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!sdd.hp.com!decwrl!usenet.coe.montana.edu!news.u.washington.edu!ogicse!reed!romulus!merlyn
From: merlyn@ora.com (Randal L. Schwartz)
Newsgroups: comp.unix.shell
Subject: Re: RM LOGIC
Message-ID: <MERLYN.92Nov2131214@romulus.reed.edu>
Date: 2 Nov 92 21:12:20 GMT
Article-I.D.: romulus.MERLYN.92Nov2131214
References: <1992Nov2.131722.27419@polari>
Sender: news@reed.edu (USENET News System)
Organization: Stonehenge Consulting Services; Portland, Oregon, USA
Lines: 20
In-Reply-To: errant@polari.online.com's message of 2 Nov 92 13:17:22 GMT