I've looking for a way to express this command that excludes all executable perms except for those files ended in ".EXE"
I've trying to solve it using the "find" command and -exec, please. Thanks.
The command I tryed, and other versions of the same, does not work:
find . -type f -regex "[^\.EXE$]" -printf "%f\n" -exec chmod a-x {} +
Thanks any help, Beco.
Edited:
To find a "inverse" of a regular expression, I tried after (more) research:
find . -type f ! -regex ".EXE$" -printf "%f\n" -exec chmod a-x {} +
But this also did not work.