Is there any way to do a recursive chmod that only hits directories or only hits file?
I've looked at this once, and I figure there's a way to do it, but I couldn't find it.
Basically, what I want to do is two steps:
1. chmod -R 775 all_dirs
2. chmod -R 664 all_files
The problem is I don't know how to make chmod find just dirs or just files. I haven't looked into any heavy scripting (anything beyond using a script to run an app with certain options) so I don't really know what I'd do there besides:
If target = dir then chmod 775 target
ElseIf target != dir then chmod 664 target
Any help is much appreciated. Thanks!