tomislav-b
2/13/2015 - 4:18 PM

Shell: Recursively find all files in a directory, while excluding one or more subdirectories.

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"