regular expression to exclude filetypes from find

You don’t need a regex here. You can use find with the -name and -not options:

find . -not -name "*.jar" -not -name "*.ear"

A more concise (but less readable) version of the above is:

find . ! \( -name "*.jar" -o -name "*.ear" \)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)