Change permissions of matching files recursivelynote, May 16, 2023 on Mitja Felicijan's blogReplace *.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 {} +