I noticed:
chmod -R a+x
adds execute permissions to all files, not just those who are currently executable.
Is there a way to add execute permissions only to those files who already have an execute set for the user permission?
I noticed:
chmod -R a+x
adds execute permissions to all files, not just those who are currently executable.
Is there a way to add execute permissions only to those files who already have an execute set for the user permission?
You can use find to get all those files:
Update: add -print0 to preserve space in filenames
Use
find
: