find . -name '*.sh' -exec chmod +x {} \;

Category: File Operations

find . -name '*.sh' -exec chmod +x {} \;

Find files and execute a command on each

Finds files matching a pattern and runs a command on each one. {} is replaced by the filename, \\; ends the command.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.