Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 16:05:39 -0600
From:      Lucas Bergman <lucas@slb.to>
To:        Peter Brezny <peter@sysadmin-inc.com>
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>
In-Reply-To: <004e01c08a28$ccf05000$46010a0a@sysadmininc.com>; from peter@sysadmin-inc.com on Mon, Jan 29, 2001 at 02:22:19PM -0500
References:  <004e01c08a28$ccf05000$46010a0a@sysadmininc.com>

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




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