From owner-freebsd-questions@FreeBSD.ORG Sat Dec 22 15:40:06 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 B855E718 for ; Sat, 22 Dec 2012 15:40:06 +0000 (UTC) (envelope-from b.smeelen@ose.nl) Received: from mail.ose.nl (mail.ose.nl [212.178.134.164]) by mx1.freebsd.org (Postfix) with ESMTP id 456E28FC0A for ; Sat, 22 Dec 2012 15:40:05 +0000 (UTC) X-Footer: b3NlLm5s Received: from localhost ([127.0.0.1]) by mail.ose.nl (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for freebsd-questions@freebsd.org; Sat, 22 Dec 2012 16:40:03 +0100 Message-ID: <50D5D454.7030601@ose.nl> Date: Sat, 22 Dec 2012 16:40:04 +0100 From: Bas Smeelen User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: exclude directories from find command References: <1356186164.16227.YahooMailNeo@web160104.mail.bf1.yahoo.com> In-Reply-To: <1356186164.16227.YahooMailNeo@web160104.mail.bf1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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:40:06 -0000 On 12/22/12 15:22, 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 find -path /extra -prune -o -type f > > Thanks in advance ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"