exclude directories from find command

Bas Smeelen b.smeelen at ose.nl
Sat Dec 22 15:40:06 UTC 2012


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"




More information about the freebsd-questions mailing list