I want to find all files in /usr/ but not in /usr/share
from this post Exclude a sub-directory using find I tried:
find /usr -type f -not -path /usr/share -print
-> print files from /usr/share
from this post How to exclude a directory in find . command I tried:
find /usr -path /usr/share -prune -print
->outputs nothing altough there are files in /usr/bin
I also tried:
find /usr -path ! /usr/share -type f -print
-> outputs an error