3 # this is supposed to count lines
13 for src_file
in $
(find src
> t
; find include
>> t
; cat t
; rm t
)
16 if [[ ! $src_file =~
"~$" ]] && [[ $
(file $src_file) =~
"ASCII C++" ]]
18 export TOTAL
=$
(bc <<< "$TOTAL + $(./ncsl -t -b $src_file)")
22 echo "Total number of lines of code :" $TOTAL