Lyndon Maydwell wrote:
> find dir/ -exec if [[ -d {} ]] ; then chmod 755 {} ; else chmod 644 {} ; fi \;
> Suggestions?
You can't do anything that fancy with find -exec. Write a shell
script that has your logic in it and call that from find.
Alternatively:
find dir/ -type d | xargs chmod 755
find dir/ -not -type d | xargs chmod 644
Cameron