chiark / gitweb /
wrapper for unicode(1) to examine each character in a word
[bin.git] / total
1 #! /bin/sh -e
2
3 total=0
4 for num in $(cat); do
5         total="$(($total + $num))"
6 done
7 echo "$total"