[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Find: how do you exclude multiple directories?



Anthony Campbell <a.campbell@doctors.org.uk> wrote:
>How can you use find to exclude more than one directory?
>
>I have:
>	find /home/ac/ -path '/home/ac/.netscape' -prune -o -print
>
>This excludes ~/.netscape but I can't add any more directories to this
>list.  Is it possible to do so?

Add more '-path whatever -prune -o' phrases after the first one?

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: