Change permissions of matching files recursively

note, May 16, 2023, on Mitja Felicijan's blog

Replace *.xml with your pattern. This will remove executable bit from all files matching the pattern. Change + to - to add executable bit.

find . -type f -name "*.xml" -exec chmod -x {} +


Other notes