When there are several layers of subdirectories in a main subdirectory (e.g. main/subdir1/subdir2/subdir3/) and each subdirectory has many php files, I wonder how to chmod those php files to 644 without chmoding subdirectories? chmod -R 644 main ?? But this also chmod subdirectories to 644, how do I add a condition to this chmod ?