Change Rights Recursive with chmod

Hello,

i want just to change Rights for a few direcories anf files, but some directories must be exclude.

How can i put the command chmod as

chmod -R 755 * exclude toto tata

where toto and tata are directories

Could you help me for that or must I use the find command

Thanks

I do not know a version of chmod that allows a exclude list. So you you could create a list with the find command and remove with grep -v those you do not want and then feed that list in a while/read loop to chmod, for example.

This will help you out

ls -1 | egrep -v "toto|tata" |  xargs chmod 755