howto chmod files but not nested dirs?
I am using rox as my filemanager, but it cannot associate applications with filetypes if the file is "executable", so I enter the following command to make all files on my data drive to be "non-executable":
chmod -R -x *
But this command also makes the subdirectories "non-executable", which apparently means "un-readable". So I lock my self out of my subdirectories. For example, if I have a bunch of MP3's organize by music type under a directory called "music", I wont be able to get to the directories inside "music" called "rock", "pop", and "jazz".
So what I have been doing is manually turning the "executable" bit back on for the directories themselves via this command:
chmod +x <dirname>
Is there an easier way to turn on the "x" flag for files, but not for directories, and have it recursively do this on all my files and directories?