Wednesday, August 13, 2008

find not




When you use find, sometimes you want to not show some of the results. You can prepend the "-not" prefix for this:


find . -name '*CMake*' -not -name "*svn*"


Finds all files that have "CMake" and don't have "svn" in their name.