# find example_dir -type d -exec chmod 755 {} \;
# find example_file -type f -exec chmod 644 {} \;
# find [example_directory] -name "*.[filename_extension]" -exec chmod [privilege] {} \;
e.g. to give executable permission to "sh" files
# find . -name "*.sh" -exec chmod +x {} \;