From owner-freebsd-questions@FreeBSD.ORG Thu Jun 17 14:32:14 2004 Return-Path: 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 013D116A4CE for ; Thu, 17 Jun 2004 14:32:14 +0000 (GMT) Received: from mail.r.caley.org.uk (82-41-211-19.cable.ubr12.edin.blueyonder.co.uk [82.41.211.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4D2043D48 for ; Thu, 17 Jun 2004 14:32:10 +0000 (GMT) (envelope-from rjc@caley.org.uk) Received: from pele.r.caley.org.uk (pele.r.caley.org.uk [10.0.0.12]) by mail.r.caley.org.uk (8.12.6/8.12.6) with ESMTP id i5HEVk32055947; Thu, 17 Jun 2004 15:31:46 +0100 (BST) (envelope-from rjc@caley.org.uk) Received: from pele.r.caley.org.uk (localhost [127.0.0.1]) by pele.r.caley.org.uk (8.12.9/8.12.9) with ESMTP id i5HEVkFm066058; Thu, 17 Jun 2004 15:31:46 +0100 (BST) (envelope-from rjc@bast.r.caley.org.uk) Received: (from rjc@localhost) by pele.r.caley.org.uk (8.12.9/8.12.9/Submit) id i5HEVjIV066055; Thu, 17 Jun 2004 15:31:45 +0100 (BST) (envelope-from rjc@bast.r.caley.org.uk) X-Authentication-Warning: pele.r.caley.org.uk: rjc set sender to rjc@bast.r.caley.org.uk using -f Sender: rjc@caley.org.uk To: Gerard Samuel References: <200406170909.37669.fbsd-questions@trini0.org> From: Richard Caley In-Reply-To: <200406170909.37669.fbsd-questions@trini0.org> Date: 17 Jun 2004 15:31:45 +0100 Message-ID: <87acz2b6i6.fsf@pele.r.caley.org.uk> Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: Means of traversing a directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 14:32:14 -0000 In article <200406170909.37669.fbsd-questions@trini0.org>, Gerard Samuel (gs) writes: gs> Im running tar(1) to make a tar ball of a directory using the gs> --newer-mtime to only get newer files after a specified date. gs> Unfortunately, it also creates unwanted "empty" directories. Have you tried using find? If a relative time is good enough find DIR -type f -mtime -6 if you need to specify a time and date, I think the only way is to use touch to makea file at the right date then use find's -newer test. -- Mail me as MYFIRSTNAME@MYLASTNAME.org.uk _O_ |<