Task: Add Execute Permission Only to Those Who Already Have Read Permission
Task: Add Execute Permission Only to Those Who Already Have Read Permission: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that adds the execute ( x ) permission to files, but only for the permission categories (owner, group, others) that already have the read ( r ) permission…
The task
Write a shell script that adds the execute (`x`) permission to files, but **only for the permission categories (owner, group, others) that already have the read (`r`) permission**. The script should work on any number of files passed as arguments.
Part of PrimeIntellect/Terminal-Lego-15k.