find exclude 1

find exclude

$ find ./ -type f -name "pattern" ! -path "excluded path" ! -path "excluded path"

Here is what the above code is Doing:
1. find all files in the current directory and subdirectories
2. that match the pattern “pattern”
3. that are not in the excluded path “excluded path”
4. that are not in the excluded path “excluded path”

Similar Posts