du -c
February 14, 2012 — openiduser30
-c option of du prints the total size of the arguments
du -s file1 dir1 | awk '{sum += $1} END {print sum}'
December 28, 2011 — bashoneliners