#!/bin/bash
bajtok=0
for a in $1/*;
do
    bajtok=`expr $bajtok + \`cat $a | wc -c\``;
done
echo $bajtok
