Change permissions only for directories

A quick tip on how to change permissions for directories under a directory tree without changing permissions for files.

In this example all sub directories under the current directory will have execute bit set for owner, group and everyone else:

find . -type d -exec chmod a+x {} \;