Date: Fri, 16 May 2003 14:44:19 +1000 (EST) From: Andrew <andrew@ugh.net.au> To: freebsd-questions@freebsd.org Subject: mtree and wildcards Message-ID: <20030516142201.O5718-100000@starbug.ugh.net.au>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030516142201.O5718-100000>
