UNIX find for finding file names NOT ending in specific extensions?
Posted
by
Cristi Diaconescu
on Stack Overflow
See other posts from Stack Overflow
or by Cristi Diaconescu
Published on 2009-08-27T14:24:45Z
Indexed on
2012/06/12
16:40 UTC
Read the original article
Hit count: 272
command-line
|find
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.
© Stack Overflow or respective owner