Shell: Recursively find all files in a directory, while excluding one or more subdirectories.
find . -not \( -path /root/exclude1 -prune \) -not \( -path /root/exclude2 -prune \) -name "*.txt"