From owner-freebsd-questions Tue Apr 17 22:49:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bbaer.muenster.de (bbaer.muenster.de [195.202.32.20]) by hub.freebsd.org (Postfix) with ESMTP id 161DD37B422 for ; Tue, 17 Apr 2001 22:49:34 -0700 (PDT) (envelope-from bofh@muenster.de) Received: (from bofh@localhost) by bbaer.muenster.de (8.9.3/8.9.3) id HAA05697; Wed, 18 Apr 2001 07:41:12 +0200 From: Eckart Hofmann Message-Id: <200104180541.HAA05697@bbaer.muenster.de> Subject: Re: Unix Shell Script Question In-Reply-To: <0B79B104AA51D311982F009027866BC502273D4F@SEHKG002> from "Sabhanam, Srinivas (GEP)" at "Apr 18, 2001 1: 3: 7 am" To: Srinivas.Sabhanam@gepex.ge.com (Sabhanam, Srinivas (GEP)) Date: Wed, 18 Apr 2001 07:41:12 +0200 (MEST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL48 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sie, Sabhanam, Srinivas (GEP), haben geschrieben: > > Could you pls. let me know how to delete files in Unix that are older than > specified days? > Have a look at the man page of find(1) to find the right options for your purposes. eg: find /path/to/your/files -type f -ctime +number_of_days -delete Hth, Eckart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message