using find to exclude dirs, while specifying a give user...

bruce bedouglas at earthlink.net
Mon Sep 3 22:10:17 UTC 2007


Hi....

trying to search a drive for files for a given user, but i want to exclude
certain dirs...

i've tried using the following with no luck...

find / \(-path "/foo" -o -path "/foo2" \) -prune -o print.... which prints
out files excluding the foo1/foo2 trees....

when i insert the -user "user1".. it blows up....

ie: find / \(-path "/foo" -o -path "/foo2" \) -prune -o -user "user1" -o
print....  <<doesn't work!!!

any solutions would be really helpful... i've been playing with this for a
few hours!!

thanks





More information about the fedora-list mailing list