Sum the size of *sh files in current directory (in bytes)


$ du -b *sh | awk '{sum += $1} END {print sum}'
3709