3 export OUT="$(mktemp "$TMP/zz_code_count.XXXXXX")"
5 find $* -iname "*.cpp" -o -iname "*.h" -o -iname "*.c" >$OUT
8 for i in $(cat $OUT); do
9 count=$(grep -h -v -c "^[ ]*$" $i)
10 TOTALS=$(expr $TOTALS + $count)
11 #hmmm: is there a better way to do the addition?
16 echo total lines of code=$TOTALS