mtree and wildcards
Andrew
andrew at ugh.net.au
Thu May 15 21:44:24 PDT 2003
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
More information about the freebsd-questions
mailing list