执行find ./ -name "*.sh*" 可以查找目录下全部的可执行文件(.sh)
chmod a+x可以给文件添加执行权限
那么结合使用 -type f -exec chmod a+x {} +即下面的命令便可查找出目录下全部可执行文件(.sh)并添加执行权限
find ./ -name "*.sh*" -type f -exec chmod a+x {} +

执行find ./ -name "*.sh*" 可以查找目录下全部的可执行文件(.sh)
chmod a+x可以给文件添加执行权限
那么结合使用 -type f -exec chmod a+x {} +即下面的命令便可查找出目录下全部可执行文件(.sh)并添加执行权限
find ./ -name "*.sh*" -type f -exec chmod a+x {} +