只更改caching文件夹组,recursion

我有一个文档的根文件夹,我想只批量caching目录的组。 我怎样才能做到这一点recursion?

caching目录总是在templates/html下面,我想把它wwwrun:www

文件夹结构如下所示:

 /blocks/element1/templates/html/cache1 root:root <- this /blocks/element1/lib/file.html root:root /blocks/element1/lib/file-xy.html root:root /blocks/element2/templates/html/cache1 root:root <- this /blocks/element2/templates/html/cache2 root:root <- this /blocks/element2/lib/file.html root:root /blocks/element2/img/icon.png root:root /blocks/element3/templates/html/cache2 root:root <- this /blocks/element3/logo.jpg root:root 

赛跑

 find . -type d -name "cache*" -exec chown -R wwwrun:www {} \; 

里面的模板/ HTML应该做到这一点。