chiark / gitweb /
New tool to get/update/switch (as appropriate) subdirectories in a tree
[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"