From owner-freebsd-questions Thu Jul 12 11: 8:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id B053D37B401 for ; Thu, 12 Jul 2001 11:08:34 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id UAA16258; Thu, 12 Jul 2001 20:15:51 +0200 Message-ID: <3B4DE804.7B2920B0@i-clue.de> Date: Thu, 12 Jul 2001 20:10:12 +0200 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: David Hill Cc: so@server.ms-agentur.de, gardhy@usvisanews.com, freebsd-questions@FreeBSD.ORG Subject: Re: File Management... References: <3B4DA0C9.8068.2DD41A4B@localhost> <3B4DE52D.2083D886@i-clue.de> <20010712140222.6b5f1ca7.david@phobia.ms> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Hill schrieb: > > On Thu, 12 Jul 2001 19:58:05 +0200 > Christoph Sold wrote: > > > > > > > "Gardhy M. Saint-Vil" schrieb: > > > > > > Hello Everyone, > > > > > > Would anyone know how to delete files based on the date modified > > > timestamp of files? > > > > find /your/path/to/clean/up -date 3 -rm > > > > man find is your friend. > > > > HTH > > -Christoph Sold > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > both -date and -rm are not options > > Try this example > > find /path -name *.txt -mtime argument | xargs rm -f Apologies... went off the top of my head without looking which manpage I'm reading. Sorry for the confusion. Anyhow, here's the actual thingy off my BSD box: find /path -mtime xxx -exec rm -f {} \; Alternatively, -atime is an option, too. Sorry for the confusion -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message