It can be done using below command as well.
find some-folder-path -type d -name wp-content -exec chown new-user:new-group {} \;
The above command will change ownership and group of all folders having name wp-content.
find some-folder-path -type d -exec chmod 755 {} \;
find some-folder-path -type f -exec chmod 644 {} \;
The above command will change permission of files to 644 and of folders to 755.