Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2012 15:08:29 +0000
From:      RW <rwmaillists@googlemail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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





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