Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2001 07:41:12 +0200 (MEST)
From:      Eckart Hofmann <bofh@muenster.de>
To:        Srinivas.Sabhanam@gepex.ge.com (Sabhanam, Srinivas (GEP))
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Unix Shell Script Question
Message-ID:  <200104180541.HAA05697@bbaer.muenster.de>
In-Reply-To: <0B79B104AA51D311982F009027866BC502273D4F@SEHKG002> from "Sabhanam, Srinivas (GEP)" at "Apr 18, 2001  1: 3: 7 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104180541.HAA05697>