Commands on selected files in a tree

Tags:

For example, I needed to add the group execute (list directory) bit to every subdirectory in the tree below the currrent directory. Most of the simple ways get tripped up by filename quoting, or embedded spaces in directory names.

Here's the command to use:

find . -type d -exec chmod g+x "{}" ;