Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2012 16:40:04 +0100
From:      Bas Smeelen <b.smeelen@ose.nl>
To:        freebsd-questions@freebsd.org
Subject:   Re: exclude directories from find command
Message-ID:  <50D5D454.7030601@ose.nl>
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 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"





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