I wan't to change the permissions of a folder and it's subfolders and all the files in it, but I can't figure out how to do it and get the folders and files to have different permisions from eachother?
After some man reading and googling
I tried first setting all to 775, and then I wanted to change all the mp3 files to 664.
so my latest atempt was:
chmod -R 775 *
ls -R | grep 'mp3' || chmod 664
But that last command did nothing
ls -R | grep 'mp3' | more
gave me a list of all the mp3 files, not sure what exactly I'm doing wrong
Is there some way of doing this, that dosn't require that I go thru thousands of files one by one ?