From owner-freebsd-questions@FreeBSD.ORG Wed Jan 27 19:30:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B4201065778 for ; Wed, 27 Jan 2010 19:30:55 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2FEF38FC15 for ; Wed, 27 Jan 2010 19:30:54 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so566646qwi.7 for ; Wed, 27 Jan 2010 11:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=sOk5cGr+UHsAnheGWkMtFk6Pki1nKAAe0HQDWvMOEAU=; b=ZTaahUQ7E0mgo299qsIJ6nFv4q9W9vsV7YCUX7pKJtuKoNQrnlRX08ueGnpbGULYeZ v72QJ1vtwvC/BzcYczvgrYwkiLsgete1zdFH6/3UnMJUF8EQ77UWyE5dlU8FgyQDIocY E199c8mu7UiIgzo0AbJGD6a/UlgCXOsbGOISQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=UK5F1aPqpKBUIUFAYoe4TFx7grSI3Fi7D8cVvJMBJB2Ye/jOap8eRr0+/bCOM+tWrv FzJN7k+8RQJIOXCK5SMRqkuOKzJZckihYKqKQB1dfNdPbOaf/uj55+YqhjEUA9cBtjME sAm39Aonx94fNAmoH4nPwd1Tpe7YbZ1GADFw8= Received: by 10.224.52.81 with SMTP id h17mr5789961qag.131.1264620653596; Wed, 27 Jan 2010 11:30:53 -0800 (PST) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 23sm127014qyk.7.2010.01.27.11.30.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 27 Jan 2010 11:30:50 -0800 (PST) Message-ID: <4B60946D.3070708@gmail.com> Date: Wed, 27 Jan 2010 14:30:53 -0500 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20100120) MIME-Version: 1.0 To: Lowell Gilbert References: <4B6090FC.4070002@gmail.com> <443a1rl59p.fsf@be-well.ilk.org> In-Reply-To: <443a1rl59p.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: finding every file not in a list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 19:30:55 -0000 Lowell Gilbert wrote: > *not* OT, I would say... > > "Aryeh M. Friedman" 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 The reason is here is a very small snippet of aelpf's output: data/config/dns/agilejavatools.com.db data/config/dns/istudentunion.com.db