Date: Tue, 6 Nov 2018 06:50:03 +0100 From: Polytropon <freebsd@edvax.de> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: Philipp Vlassakakis <freebsd-en@lists.vlassakakis.de>, freebsd-questions@freebsd.org Subject: Re: mtree -X Message-ID: <20181106065003.c1081c64.freebsd@edvax.de> In-Reply-To: <20181106024857.GA76231@admin.sibptus.ru> References: <20181105170557.GA70617@admin.sibptus.ru> <46C7D1B5-E72A-4874-8C00-1DBC320C00AB@lists.vlassakakis.de> <20181106024857.GA76231@admin.sibptus.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181106065003.c1081c64.freebsd>