From owner-freebsd-questions Wed Nov 18 14:42:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA21814 for freebsd-questions-outgoing; Wed, 18 Nov 1998 14:42:12 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA21809; Wed, 18 Nov 1998 14:42:08 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id QAA17794; Wed, 18 Nov 1998 16:39:58 -0600 (CST) Date: Wed, 18 Nov 1998 16:39:57 -0600 From: Dan Nelson To: gmarco@giovannelli.it, questions@FreeBSD.ORG Cc: newbie@FreeBSD.ORG Subject: Re: files newer than n days... Message-ID: <19981118163957.A17436@emsphone.com> References: <199811182212.XAA05495@www.giovannelli.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: <199811182212.XAA05495@www.giovannelli.it>; from "Gianmarco Giovannelli" on Wed Nov 18 23:20:26 GMT 1998 X-OS: FreeBSD 3.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Nov 18), Gianmarco Giovannelli said: > > Hello I'd like to find with "find" or in other way files newer than a > given period, lets say 2 days for example... I tried with the ctime > param of the find but it matches only files modified in the day > specified (example -ctime 2, give me back all the files created on > the day before yesterday but not the files created yesterday > itself...) I can use -ctime 2 -or -ctime 1 as params of the find, but > I like more a better solution.... According to the find manpage: All primaries which take a numeric argument allow the number to be preceded by a plus sign (``+'') or a minus sign (``-''). A preceding plus sign means ``more than n'', a preceding minus sign means ``less than n'' and neither means ``exactly n'' . So "find . -ctime -2" should work. > Please aswer to me too, because I am not subscribed to this list. This is standard operating procedure for the FreeBSD lists. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message