From owner-freebsd-questions@FreeBSD.ORG Mon Jun 6 22:07:24 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C340216A41C for ; Mon, 6 Jun 2005 22:07:24 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B35143D1F for ; Mon, 6 Jun 2005 22:07:24 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id 0EFD43891CB; Mon, 6 Jun 2005 17:07:24 -0500 (CDT) Date: Mon, 06 Jun 2005 17:07:18 -0500 From: Paul Schmehl To: Francisco Reyes Message-ID: <0D1119B615CF2856E282F6F9@utd59514.utdallas.edu> In-Reply-To: <20050605234620.P79890@zoraida.natserv.net> References: <20050605215422.O79500@zoraida.natserv.net> <20050605234620.P79890@zoraida.natserv.net> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: FreeBSD Questions List Subject: Re: Looking for files older than n number of days? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 22:07:24 -0000 --On Sunday, June 05, 2005 23:47:44 -0400 Francisco Reyes wrote: > On Sun, 5 Jun 2005, Paul Schmehl wrote: > >> Use negation. >> find ! -n 10 blah > > Could not get it to work with anything like that syntax. > For starters I don't see "-n". I see newer but that seems to compare to > another file.. Is this something you have done in the past? > All I gave you was an example of how negation works, not a specific command for find. Try this: find {path} ! -newer {path to file with date you want} Or you can touch a file with the date you want. Then use that file as the "key" for find to know what "! -newer" means. Take a look at this: There's tons of ways to do what you want. You just need to choose one that you like. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/