From owner-freebsd-questions@FreeBSD.ORG Thu May 15 21:44:24 2003 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 1924837B401 for ; Thu, 15 May 2003 21:44:24 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59CC343F93 for ; Thu, 15 May 2003 21:44:23 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 17E48A828; Fri, 16 May 2003 14:44:20 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 858A0542F for ; Fri, 16 May 2003 14:44:20 +1000 (EST) Date: Fri, 16 May 2003 14:44:19 +1000 (EST) From: Andrew To: freebsd-questions@freebsd.org Message-ID: <20030516142201.O5718-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: mtree and wildcards 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: Fri, 16 May 2003 04:44:24 -0000 Hi, I am trying to use mtree to create subdirectories of a series of pre existing directories. The problem is I don't know how many directories there will be. I wanted to make an mtree specfication like: * my .. sub .. directories .. .. and have * match all the existing directories - alas it creates a directory called * and puts the subdirectories under that. mtree(8) talks about using []?* but clearly meant in some other way. I can work around it by writing a script to call mtree multiple times but it seems that mtree should support this behaviour (and it would be a neater solution). Thanks, Andrew