#! /bin/sh
# $Id: gettotals,v 1.3 2007/06/11 19:20:58 nathan Exp $
# Print total number and size of input
# Example: gettotals dir/*.txt

/bin/ls -lad $@ | /usr/bin/gawk '{S+=$5; N+=1} END {print "Total: " S " bytes in " N " files" }'

