You are here

total size of group of files selected with 'find'

find /var/log/ -name 'apps*' -exec du '{}' \; | awk '{total+=$1} END {print total/1024" MB"}'