for f in $(ls | egrep "*txt"); do c=$(egrep "." -ho $f| wc -l); s=$(egrep " " -ho $f| wc -l); echo $f - $(($c-$s)) >> LOG.txt; done;