find filenames NOT ending in specific extensions on Unix?

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.

8 Answers
8

Leave a Comment