Issue
Using chmod
, I do chmod +x *.sh
in the current directory but what if I want to change all files including files within subfolders that has an sh file extension?.
chmod +x -R *
will work but I need something more like chmod +x -R *.sh
Solution
use find:
find . -name "*.sh" -exec chmod +x {} \;
Answered By - ennuikiller Answer Checked By - David Goodson (WPSolving Volunteer)