I'd prefer to re-set the directories to 755 and the files to 644. I don't know that it really matters, but I prefer to, and it's a pain on an item-by-item basis. Of course, with a hierarchy you could recursively re-set everything to 755 from the top directory. But then how would you unset the executable bit on the files while leaving the directories alone?
I can understand that you must be able to select the files, because you can get them by extension, e.g.:
CODE
find . -name "*.ogg" -print
But how can you chmod them?
It seems to me this must be a simple enough thing to do, but I know an embarrassingly small amount about bash, so would someone be kind enough to put me right on this, please?
