Is there a simple way to recursively find all files in a directory hierarchy, that do not end in a list of extensions? E.g. all files that are not *.dll or *.exe
UNIX/GNU find, powerful as it is, doesn't seem to have an exclude
mode (or I'm missing it), and I've always found it hard to use regular expressions to find things that don't match a particular expression.
I'm in a Windows environment (using the GnuWin32 port of most GNU tools), so I'm equally open for Windows-only solutions.
Or without
(
and the need to escape it:and to also exclude the listing of directories
or in positive logic ;-)
You could do something using the grep command:
The
-v
flag ongrep
specifically means "find things that don't match this expression."