set permissions on files only:
Code:
find . -type f -exec chmod 0644 {} \;
set permissions on dirs only:
Code:
find . -type d -exec chmod 0755 {} \;
recursively set permissions on something depending on if it's a file or a directory (note: chmod -R 0755 would make EVERYTHING (files AND directories) 755.. I don't want that).
Of course that can be changed to chown or pretty much anything you want hehe..
I have some other scripts, but they're only relevant for work..