Negate find results

Find files that do not match expression and do stuff on them:

find ./ \[expressions\] -prune -or \[dostuff\]

Example:

find ./ -name '.svn' -prune -or -type f -print

finds all non-svn files and prints their paths to stdout.

Next
Previous

Related