3 # this is supposed to count lines, cheaply though
6 for src_file
in $
(find src
> t
; find include
>> t
; cat t
; rm t
)
9 if [[ ! $src_file =~
"~$" ]] && [[ $
(file $src_file) =~
"ASCII C++" ]]
11 TEMP
=$
(wc -l "$src_file" |
sed -e "s/\([0-9]*\).*/\1/g")
12 export TOTAL
=$
(bc <<< "$TOTAL + $TEMP")
16 echo "Total number of lines of code :" $TOTAL