From owner-freebsd-questions@FreeBSD.ORG Wed Jan 27 19:16:12 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 8A98110656A6 for ; Wed, 27 Jan 2010 19:16:12 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-qy0-f203.google.com (mail-qy0-f203.google.com [209.85.221.203]) by mx1.freebsd.org (Postfix) with ESMTP id 426DB8FC12 for ; Wed, 27 Jan 2010 19:16:11 +0000 (UTC) Received: by qyk41 with SMTP id 41so4165610qyk.29 for ; Wed, 27 Jan 2010 11:16:11 -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:subject:content-type :content-transfer-encoding; bh=uvBLBJyh8NsZwueO2N6iEzQRxGoBm/jxuedJkgaI0Sc=; b=qczmiGy72+mTpsdgl7VJKVwpXb/JnAzF/RQGeJMLnyumR2rAFSnYPQmc3lPP8FyhYo 7Qe7/wTSRy8J7ldrRXl7WfdziXQy3JFdBplDYiL3YHdh90qV48AxQRzft9NGtrVIfMhw Cl2C/Aph+fl3oeWN1KzZLhUnPtGaDGuiPdeAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=vN41c75YlphbupSE/9iZefNJ6hjLEqFJRqynzOfhTg5cm9icIsbo8+DvMKrHDOB4us w5nR6HP5BHYe1LyhXuIlh/W8p9aRrc/MfEZRZ+OZGo8j5VMAmDj3ZRKJFzd5Axx6be2Z ZN/x7TqLTPfO46vi/J6h+5NlKBcRnQzdyQ3Q0= Received: by 10.229.68.11 with SMTP id t11mr60516qci.25.1264619771244; Wed, 27 Jan 2010 11:16:11 -0800 (PST) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 23sm117488qyk.11.2010.01.27.11.16.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 27 Jan 2010 11:16:09 -0800 (PST) Message-ID: <4B6090FC.4070002@gmail.com> Date: Wed, 27 Jan 2010 14:16:12 -0500 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20100120) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: OT: 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:16:12 -0000 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?