I have a very deep database of sub-directories and files which is too big for a chmod. Many of the files have special characters in their names (such as $$). I want to change the permissions on the directories so that people can write into the database, but only let people read what is already in there. The best I can come up with is;
This seems to work, but is there a way of doing this (fairly basic function) just using normal commands?
Code:
ls -rR1 | grep -i : | sed -e "s>:>'>" | sed -e "s/.\//chmod 775 '.\//" > dir_list
source ./dir_list
This seems to work, but is there a way of doing this (fairly basic function) just using normal commands?