mtree and wildcards

From: Andrew (andrew_at_ugh.net.au)
Date: 05/16/03

  • Next message: Chuck Swiger: "Re: ad0: READ command timeout - a common problem i think"
    Date: Fri, 16 May 2003 14:44:19 +1000 (EST)
    To: freebsd-questions@freebsd.org
    
    

    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

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Chuck Swiger: "Re: ad0: READ command timeout - a common problem i think"

    Relevant Pages

    • Re: REVIEW: cleanvar.patch
      ... Brooks Davis wrote: ... > we should move mtree and possiably newsyslog to /sbin to support the ...
      (freebsd-current)
    • Re: Allow user install
      ... It's there except that makefs uses the FreeBSD mtree code which doesn't ... support the crucial absolute path support in NetBSD's mtree. ...
      (freebsd-arch)