Languages
[Edit]
EN

Bash - add permission to execute all *.sh files located in some directory

10 points
Created by:
martineau
300

Quick solution:

find /path/to/directory -name "*.sh" -exec chmod u+x {} \;

or in current working directory:

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

Note: above command will find all *.sh scripts (even in subdirectories) and will add them execution permissions (u+x - user add execution permissions)

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join