Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2010 15:39:58 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: finding every file not in a list
Message-ID:  <44wrz3jn8h.fsf@be-well.ilk.org>
In-Reply-To: <4B60946D.3070708@gmail.com> (Aryeh M. Friedman's message of "Wed, 27 Jan 2010 14:30:53 -0500")
References:  <4B6090FC.4070002@gmail.com> <443a1rl59p.fsf@be-well.ilk.org> <4B60946D.3070708@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Aryeh M. Friedman" <aryeh.friedman@gmail.com> writes:

> Lowell Gilbert wrote:
>> *not* OT, I would say...
>>
>> "Aryeh M. Friedman" <aryeh.friedman@gmail.com> writes:
>>
>>   
>>> I have a list of files that should be in a dir tree and want to remove
>>> any files from the tree not in list (i.e. if it is on the list keep it
>>> else rm it)... any quick way to do this?
>>>     
>>
>> mtree(8)
>>
>>   
> Tried aelpf -p master | mtree -p ~aegis/master/baseline/" (ignore the
> aelpf it is a command unique to devel/aegis) but got the following:
>
> mtree: line 1: slash character in file name

You'll need to turn the file list into an mtree specification before you
can use it to do this.  Why don't you try one of the other suggestions
(which may be usable as-is)?


-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44wrz3jn8h.fsf>