This is my scenario :

I wan't to find total number of lines which Iam handling in my current project , excluding blank lines and cmments . My code base is written in C and Linux platform .

This shell script counts the total number of lines, but how can i find tune this to knock out blank lines and comments ?
-----------------------------------------------------------------------------------------
#!/bin/sh
# recursive/countlines.sh
total=0
for currfile in `find . -name "*.[c|h]" -print`
do
total=$[total+(`wc -l $currfile| awk '{print $1}'`)]
echo 'total=' $total
done

-----------------------------------------------------------------------------------------

Can anyone help me on this ?