Find all files (-type f) and execute the command dirname on each of them ('{}'), then pipe the output to awk and execute the command chmod 755 on each of the output lines.
find . -type f -exec dirname '{}' \; | awk '{system("chmod 755 "$0)}'