Find all files with the extension ".log" in the current directory and its subdirectories, calculate the size of each file and print the total size of all files.
find ~ -name "*.log" -type f -exec du -h {} \; | awk '{total += $1} END {print total}'