From owner-freebsd-questions@FreeBSD.ORG Sat Dec 22 15:08:40 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A3F7C2 for ; Sat, 22 Dec 2012 15:08:40 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by mx1.freebsd.org (Postfix) with ESMTP id B96608FC17 for ; Sat, 22 Dec 2012 15:08:39 +0000 (UTC) Received: by mail-ea0-f180.google.com with SMTP id f13so2285100eai.11 for ; Sat, 22 Dec 2012 07:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=NJwV44UBL9syCEvWR1WAP4hwZkHmq+QydP2Q4aVpcck=; b=KfAmpA700s6IoC4MCrqAOYmCRl+MFC2FxPKFAl6C7Zp1grnwfrncnDK76wT1KKMIwT 5zJkDPD2rcVYkmdfhzdECXcZu2RQGHInhijIlQ/5koEbsv2GD6MfDiAnkc5DQYqGz09c QmOC1u/roPRfPyMnncEFpQBJbPyoZIC/Bu2XvhtltfnoesfUcV/4BHvx/IsjFGOEL8q6 kXzE4R1r/dzmJxeU+igJmOO6YsaKdvWvtPeXk1mtBERlMx2daSVfOlL1FfqhD4ATGrDF JC7NQT90pFDyBKV/AqbjHJwJWf0SrXlJLbFIqANykECw6BMyQ28y7dLKvrTD8CDXaFI3 1Y5g== X-Received: by 10.14.204.70 with SMTP id g46mr15103806eeo.15.1356188913431; Sat, 22 Dec 2012 07:08:33 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id d3sm28715387eeo.13.2012.12.22.07.08.31 (version=SSLv3 cipher=OTHER); Sat, 22 Dec 2012 07:08:32 -0800 (PST) Date: Sat, 22 Dec 2012 15:08:29 +0000 From: RW To: freebsd-questions@freebsd.org Subject: Re: exclude directories from find command Message-ID: <20121222150829.28056d15@gumby.homeunix.com> In-Reply-To: <1356186164.16227.YahooMailNeo@web160104.mail.bf1.yahoo.com> References: <1356186164.16227.YahooMailNeo@web160104.mail.bf1.yahoo.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2012 15:08:40 -0000 On Sat, 22 Dec 2012 06:22:44 -0800 (PST) Jack Mc Lauren wrote: > Hi fellas > How can I exclude specific directories from my find command ? I want > to look for all files in the whole system except for those in > e.g /extra directory. I use this command to find all files, but how > can I exclude /extra directory ? > > find / -type f > Try this http://lmgtfy.com/?q=find+exclude+a+directory