This snippet is more than 5 years old and may no longer be best practise, test before use.

chmod recursive directories only


chmod recursively to directories only, adjust -type d to -type f to target files exclusively

Code: