mtree -X
Polytropon
freebsd at edvax.de
Tue Nov 6 05:56:01 UTC 2018
On Tue, 6 Nov 2018 09:48:57 +0700, Victor Sudakov wrote:
> Philipp Vlassakakis wrote:
> >
> >./dev works for me
> >
> ># cat ignore.mtree
> >./dev
> >
> >then mtree -p / -c -X ignore.mtree > mtree.test
>
> Thanks, Philipp, it looks like a directory should start with a "./" and have no
> trailing slash to be ignored.
Correct. Check "man mtree" for the -X option:
If the pattern contains a `/' character, it will be
matched against entire pathnames (relative to the
starting directory); otherwise, it will be matched
against basenames only.
Also see "man 3 fnmatch" which discusses the specific
interpretation of "/" and "*" which applies to the
exclude list.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list