I want to exclude all directories from the find
command target. I can use this:
find / -not -path /my/path -name name
But this still keep looking at all subdirectories of /my/path
. Is there a way to exclude the directory and all its subdirectories from find
?