From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 07:16:28 2006 Return-Path: X-Original-To: freebsd-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 6CD0316A420 for ; Wed, 11 Jan 2006 07:16:28 +0000 (GMT) (envelope-from jhfoo@nexlabs.com) Received: from tin.colossus.net (tin.colossus.net [216.121.224.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E79043D46 for ; Wed, 11 Jan 2006 07:16:28 +0000 (GMT) (envelope-from jhfoo@nexlabs.com) Received: from nexpc (63.210-193-15.adsl.qala.com.sg [210.193.15.63]) by tin.colossus.net (8.9.3p2/8.9.3) with SMTP id XAA31113; Tue, 10 Jan 2006 23:16:14 -0800 Message-ID: <013401c61680$23773e00$c801a8c0@nexpc> From: "Foo Ji-Haw" To: , References: Date: Wed, 11 Jan 2006 15:24:59 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Cc: Subject: Re: search by date 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: Wed, 11 Jan 2006 07:16:28 -0000 > Can somebody tell me how to search for files by the date they were created. > Maybe somebody has a script they have created and would like to share. I > have about 5000 files in different directories I would like to backup crated > prior to 2003 and then delete. Any ideas? You can try stat() to pick up the creation/ last modified date.