From owner-freebsd-questions@FreeBSD.ORG Thu Jun 17 13:09:59 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 1EA1316A4CE for ; Thu, 17 Jun 2004 13:09:59 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id E63B843D45 for ; Thu, 17 Jun 2004 13:09:58 +0000 (GMT) (envelope-from fbsd-questions@trini0.org) Received: from hivemind.trini0.org (trini0.org[65.34.205.195]) by comcast.net (rwcrmhc12) with ESMTP id <200406171309380140028j10e>; Thu, 17 Jun 2004 13:09:38 +0000 Received: from gladiator.trini0.org (gladiator.trini0.org [192.168.0.3]) by hivemind.trini0.org (Postfix) with ESMTP id DA31216C for ; Thu, 17 Jun 2004 09:09:37 -0400 (EDT) From: Gerard Samuel To: freebsd-questions@freebsd.org Date: Thu, 17 Jun 2004 09:09:37 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406170909.37669.fbsd-questions@trini0.org> Subject: 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 13:09:59 -0000 For a shell script. The scenario. Im running tar(1) to make a tar ball of a directory using the --newer-mtime to only get newer files after a specified date. Unfortunately, it also creates unwanted "empty" directories. Is there a way to scan the directory (recursively) into an array, and loop over it, in a script? Thanks