I see that the
find command does not descend into subdirectories when you're using the
-prune option. How do I tell find to recurse into the sub directories, but also ignore some stuff?
Specifically, I want to search the
/var/lib/foo directory, but exclude any directories with the name
sudo find /var/lib/foo -prune -name '.snapshot'
With the above, it properly ignores .snapshot, but doesn't go into the sub dirs. FYI, I'm working in bash on a CentOS 6.3 host.