I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:
1- find all directories with "cache" name
if I search in for example "/home/demo/" directory
it find the "cache" directory in maximum one deeper level, like :
/home/demo/ddf3e/
/home/demo/awda2/
Not deeper than this
2- clean all files & directories inside of "cache"s directories
Only the contents to be remove not itself
3- creat an "index.html" file in all "cache"s directories
Thank you in advance