I have log files for many websites in a structure like /var/www/domainname.com/log/access.log
and I am looking to clear their content. I need to find a way to do it in one command, but I do not seem to do it, I have tried with
find /var/www/ -type f -name "access.log" -exec cat /dev/null > access.log {} \;
But this actually creates a new access.log file copying contents of all access log files of all websites.