Bash: Execute a command only on a set of objects

Apply sticky bit only on folders:

chmod g+s $(find . -type d)