I am using find -type f
command to recursively find all files from a certain starting directory. However, I would like to have some directories prevented from entering and extracting names of files inside. So basically I am looking for something like:
find . -type f ! -name "avoid_this_directory_please"
Is there a functioning alternative to this?
-prune
: it can be a bit confusing. Also this on stackoverflow describes why it's such an annoying thing to use. – ilkkachu Mar 08 '17 at 21:26