From owner-freebsd-questions Mon Jan 29 14: 8: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id AB8B637B69D for ; Mon, 29 Jan 2001 14:07:52 -0800 (PST) Received: (qmail 18101 invoked by uid 1000); 29 Jan 2001 22:05:39 -0000 Date: Mon, 29 Jan 2001 16:05:39 -0600 From: Lucas Bergman To: Peter Brezny Cc: freebsd-questions@freebsd.org Subject: Re: OK Shell Script GURU's here's another easy one for you. Message-ID: <20010129160538.C17961@billygoat.slb.to> Reply-To: lucas@slb.to References: <004e01c08a28$ccf05000$46010a0a@sysadmininc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004e01c08a28$ccf05000$46010a0a@sysadmininc.com>; from peter@sysadmin-inc.com on Mon, Jan 29, 2001 at 02:22:19PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'd like to add a line of text to a program that's run by a daily > cron job that delets all files two weeks old or older. The short answer is `man find'. The long answer, depending on your exact needs, is something like % find /path/to/files -ctime +14 -type f | xargs rm Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message